Mass protests have broken out in cities across Indonesia with clashes between police and those in attendance following the death of a ride-sharing driver who was hit by a police vehicle on Thursday night.

Twenty-one-year-old Affan Kurniawan had been taking part in the action opposing housing perks for politicians and cost-of-living issues.

On Friday, tear gas and water cannons were fired at crowds gathering in the major cities of Jakarta and Surabaya, while some protesters threw Molotov cocktails and fireworks.

The unrest is seen as a key test for President Prabowo Subianto, with frustrations over a lack of jobs, low wages, high taxes, and rising living costs.

Affan Kurniawan's funeral took place on Friday, with his former colleagues accompanying him to his final resting place. They were joined by Jakarta police chief Asep Edi Suheri and politicians who expressed hope that the case would be thoroughly investigated but called for the delivery riders to stop their protests in order to maintain stability.

The police chief also repeated an apology. As this was happening, protesters gathered outside the police headquarters demanding justice for his death.

An apology has also been issued to Mr. Kurniawan's family by President Prabowo Subianto, who said he was shocked and disappointed by the excessive actions of the officers.

The governor of Jakarta, Pramono Anung, also visited Mr. Kurniawan's family, expressing condolences and offering financial assistance for funeral arrangements.

On Friday, seven members of the Mobile Brigade Corps (Satbrimob) were found to have violated the police professional code of ethics.

As the day went on, tensions ramped up, with protesters attempting to block a police convoy and throwing rocks at vehicles.

Despite heavy rain, some protesters threw Molotov cocktails and firecrackers towards the police compound. Protests were also seen outside of Jakarta in Jawa Barat, Surakarta, Bandung, and Medan.

Following Mr. Kurniawan's death, Gojek released a statement: Behind every green jacket, there's a family, prayers, and struggle. Affan Kurniawan was part of that journey, and his departure leaves a deep sorrow for all of us.

The company stated it would provide support to Mr. Kurniawan's family. Protests continue around economic issues including a new monthly allowance for lawmakers amounting to 50 million rupiah ($3,030; £2,250), almost 10 times the minimum wage in Jakarta. Protestors are also demanding higher wages, lower taxes, and stronger anti-corruption measures.