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
I also have my google-service set on app.json on android
I followed the guide from official page step by step.
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 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.