Please provide the following:
- SDK Version: 40.0.0
- Platforms(Android/iOS/web/all): Android
Hi, I’m trying to configure the app using FCM, so I used this guide to sending Notifications with FCM and this one to use FCM for Push Notifications, I got the token of my device using Notifications.getDevicePushTokenAsync()
and using to test in postman like this:
Authorization:key=AAAAm_p0hoc:************************************* (Server-key from FCM)
Content-Type: application/json
{
"to" : "fV17M******************:********************************************" (Device token),
"priority": "normal",
"data" : {
"experienceId": "@tcdiastor/test-app",
"title": "\uD83D\uDCE7 You've got mail",
"message": "Hello world! \uD83C\uDF10"
}
}
Also, I used the updated google-services.json and checked the senderID from file with FCM console and both are right, but I always receiving this:
{
"multicast_id": 8047791250796355996,
"success": 0,
"failure": 1,
"canonical_ids": 0,
"results": [
{
"error": "MismatchSenderId"
}
]
}
Is something wrong there? I think the only step I didn’t is about to make a new build with expo build:android
cuz I’m testing with Metro Bundler.
Just an observation: if I send a notification using Notifications composer of FCM with the same device token, it works well.