- SDK Version: 41
- Platforms(Android/iOS/web/all): Android
Hello, I’m having trouble implementing Push Notifications on an app I’m developing.
I have a backend API based on Laravel where notifications are fired to expo using laravel-exponent-push-notifications package.
I followed the expo-notifications docs to setup my Firebase app so I have already added my google-services.json file to my expo app and uploaded the FCM Server Key to expo credentials.
The notifications arrive when using expo go but when I build my app and install it on device, I can’t make it work. There is no crash, no LogCat message with my console.log(notification) instruction. Nothing.
This is the second app I’m building using expo-notifications, I had no problems with the first one. Both apps use different Firebase projects and keys, I don’t know if is a problem related to it.
Also, when I try to use the Push Notification Tool, I’m getting the following error:
InvalidCredentials: Failed to authenticate with the FCM server. Ensure the FCM server key you uploaded is correct.
But how does Push Notification Tool knows which FCM key to use? because I have two apps with different server keys.
Thanks in advance.