In my case, push notifications on android are failing with the following error message:
message: "Unable to retrieve the FCM server key for the recipient's app. Make sure you have provided a server key as directed by the Expo FCM documentation.",
details: { error: 'InvalidCredentials', fault: 'developer' }
I’ve followed the directions on https://docs.expo.io/versions/latest/guides/using-fcm/. The upload of credentials (cloud messaging/server key) seems to work:
expo push:android:upload --api-key %MY_KEY%
Reading project configuration...
Logging in...
Setting API key on Expo's servers...
All done!
But when I go to send a PN to Android, I always get the same InvalidCredentials error. IOS is working fine.
I can verify that:
- the android package name is the same value as
android.package
in the app.json - the
google-services.json
is up to date - google-services is referenced in android.googleServicesFile
Is it possible to verify that the server credentials are uploaded correctly on Expo’s end?
Are there any other steps I can take to resolve this issue?