Tens of thousands of Catalan separatists have taken part in a final rally ahead of Sunday's planned referendum on independence from Spain.
Regional President Carles Puigdemont told the crowd he believed Catalonia would be taking its first steps as a sovereign nation.
Thousands of extra police have been drafted in from across Spain as the government seeks to stop the ballot.
Google has deleted an app used to direct voters to polling stations.
Phone users in the region who try to download the app from Google Play get a message saying it is not available locally, although those who already have the app can still use it.
The corporation said it was complying with a court order.
Catalonia - a wealthy region of 7.5 million people in north-eastern Spain - has its own language and culture and a high degree of autonomy but is not recognised as a separate nation under the Spanish constitution.
- 16% of Spain's population live in Catalonia
- 25.6% of Spain's exports come from Catalonia
- 19% of Spain's GDP is produced in Catalonia
- 20.7% of foreign investment in Spain goes to Catalonia
- 35.3% of Catalonia's GDP is debt
- Ministry of Economy, Industry and Competitiveness, Eurostat, Bank of Spain
Pressure for a vote on self-determination has grown over the past five years and in the 2015 regional election, won by an alliance of pro-independence parties, about 40 percent of voters backed parties loyal to Spain.
Will the vote really happen?
Police across Catalonia have been ordered to prevent public buildings being used as polling stations on Sunday.
Masses of referendum materials have been confiscated by police in recent weeks and officials involved in running the campaign face prosecution.
The Catalan government said on Friday it planned to open more than 2000 polling stations regardless.
During his speech at Friday's rally Mr Puigdemont said: "Friends, so that victory is definite, on Sunday let's dress up in referendum (clothes) and leave home prepared to change history."
He and his predecessor, Artur Mas, later arrived for the rally in Barcelona where the stage was decorated with the words "Referendum is democracy" in giant letters.
Why is Madrid so opposed?
Spanish Prime Minister Mariano Rajoy stared down Catalan secessionists when they held a trial referendum in 2014, offering no concessions to their demand for a legal vote.
He has pledged to stop the 2017 vote, saying it goes against the constitution which refers to "the indissoluble unity of the Spanish Nation, the common and indivisible homeland of all Spaniards".
Spanish unionists argue Catalonia already enjoys broad autonomy within Spain, along with other regions like the Basque Country and Galicia.
Government spokesman Iñigo Mendez de Vigo accused the Catalan government of being inflexible and one-sided but it is a charge Catalan nationalists throw back at Madrid itself.
In other developments on Friday:
- Hundreds, if not thousands, of tractors were driven into Barcelona and other towns to act as protective barriers around polling stations
- Restrictions were introduced on commercial light aircraft and helicopters flying over Barcelona this weekend to prevent activists trailing banners, according to local media
- Referendum activists occupied schools across Catalonia in a move to keep them open for the vote