Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Firebase PERMISSION_DENIED reason API_KEY_SERVICE_BLOCKED

I ran into such a problem, when I tried to initialize firebase and get the FCM token, I get this error, who faced it? What could be the reason? A month ago, everything worked, after that nothing was changed in google-services.json file, firebase flow in project, or in google console. enter image description here

API key permissions added

enter image description here

like image 537
Azarnoy Avatar asked Oct 27 '25 04:10

Azarnoy


1 Answers

I fixed same error while adding push notifications into iOS project:

Fixed on Google Cloud console -> APIs & Services -> Credentials

Google Cloud - Credentials image

then CLICK on the API Key you are using for the app having problems

enter image description here

Scroll to the API restrictions section

api restrictions section

expand the combo box and select Firebase Cloud Messaging API and Firebase Installations API hit OK after selecting both and SAVE this.

enter image description here

REMEMBER: Wait 5 to 10 minutes to test this working, so be patient and grab a coffee before testing again :)

like image 57
Fernando Romiti Avatar answered Oct 30 '25 01:10

Fernando Romiti



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!