Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

firebase error messaging/authentication-error

where does the server key go when using firebase nodejs sdk.

I'm getting the error messaging/authentication-error, message: 'An error occurred when trying to authenticate to the FCM servers. Make sure the credential used to authenticate this SDK has the proper permissions.

however my sdk works in when handling authentications, so it's definitely initialized just not for messaging.

like image 673
Luke Avatar asked Nov 19 '22 06:11

Luke


1 Answers

  1. Go to GCP Dashboard in your project;
  2. Search API and Service;
  3. In the Enable APIs and Services section, click +Enable APIs and Services, and search cloud messaging;
  4. Now go to Cloud Messaging and Firebase Cloud Messaging API one by one and enable it.
like image 131
Shubham Gupta Avatar answered Dec 25 '22 22:12

Shubham Gupta