question

robert avatar image
robert asked

Android Push Notification / Server Key / Documentation Error

In the setup push notification for Android documentation:

PlayFab requires a server API-Key:

  • You can get this key from Google API Manager, or from the Firebase Console
  • Google API Manager:
    • Select your Project
    • Select Credentials (left menu)
    • The Firebase Project import will have created a ServerKey for you here
  • Firebase Console:
    • Select your Project or App, and find the Settings option (there are many ways to do this, all of which lead you to the same place)
    • In the General tab, this is listed as "Web API Key"
    • In the Cloud Messaging tab, this is listed as "Legacy server key"
  • All of the keys described above should be identical, and they are all the "API Key" described in this document

We just tried to setup the new push notifications for one or our apps and followed all steps as described in your documentation.

When trying to enable push notifications (Game Manager -> Settings -> Push Notifications) we received an error with "invalid credentials". After further investigation we recognised that the keys "Web API Key" and "Legacy Server Key" are not the same! Only using the "Legacy Server key" worked to setup push notification.

Just for your information.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
1807605288 avatar image
1807605288 answered

Yes, we've had a few customers report that the keys we call out as identical are not identical for them. Likely there's some difference in how you created your project.

I've updated the doc with a note that the keys can sometimes be different, and when they are different, the Legacy Server Key is the one to give us.

Thanks for the info.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.