InvalidCredentials after sdk update?

Please provide the following:

  1. SDK Version: 47
  2. Platforms(Android/iOS/web/all): Android

I have this error when i try to send a notification:
InvalidCredentials: 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.

I got my server key set on expo dashboard
image

I also have my google-service set on app.json on android
image

I followed the guide from official page step by step.

What i do wrong? Or what else i have to check?

I would recommend double-and-triple-checking that the server key in use matches the Expo project/ slug of the app that is generating the push token, that your package name is registered under the app with that server key in Firebase, and that you are indeed using the server key and not one of the other keys present on the Firebase console. That error corresponds to a 401 error from the FCM send endpoint (android - Firebase 401 unauthorized error FCM - Stack Overflow).

I checked all tokens / server key.

All is set corectly.

I don’t get a 401 status error.
My error is:
InvalidCredentials: 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.

I will try again.

In internal build it’s working, but when i use stage build or prod build it will not work.

It’s working in internal build even if i keep PROD or STAGE config.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.