Getting Google Authentication Error while sending Mobile Push notifications

If you are getting Google Authentication Error or Mismatch Sender Id Error while sending the campaign, your server key is probably not authenticated/valid to send the push notification to your registered users. This error is most frequently occurring:

  • because Google is phasing out GCM and asking apps to migrate to FCM. To check how to migrate your GCM project to FCM, you can read Google's migration documentation here. 
  • if you have already migrated your Google project to Firebase, and you are using Legacy key in MoEngage Dashboard.

In this article, we will help you how to get the server key that works for sending push notifications.

  • Visit the Firebase Console.
  • Select the project name that you are using to send push notifications.
  • Click on Project settings, there is a settings icon, right to the overview. You will find it there.
  • Under Project Settings, select Cloud Messaging. You will see 2 keys mentioned in there. Screen_Shot_2017-05-21_at_12.01.43_pm.png
  • Legacy server key is what you might be using on MoEngage Dashboard and you are not able to send notifications. 
  • Pick up the Server key (which is a longer one), and update it under Server key in the Mobile Push Setting on dashboard as under

Note: The key quoted below is just a sample key. You need to use your own Server key there.

Screen_Shot_2017-06-13_at_12.35.27_PM.png

  • Once you update the Server key, create a campaign on the dashboard and check if you receive push notifications on your mobile app.
Was this article helpful?
0 out of 1 found this helpful