[ad_1]
I’m utilizing firebase messaging to ship notifications to customers in flutter utility, and every little thing is working high-quality when I’m sending notification from postman (notification at all times exhibits), however then after I wish to ship the identical notification from my backend server, notification not displaying on machine. On server logs I can see that notification was ship with success like this:
{
"multicast_id": XXXXXXXXXXXXX,
"success": 1,
"failure": 0,
"canonical_ids": 0,
"outcomes": [
{
"message_id": "XXXXXXXXXXXXX"
}
]
}
So it means it was accurately ship to messaging providers, however push notification not firing on machine.
Generally after I open app (going to foreground of utility) then notification in some way exhibits, however I want customers to see notification at all times, particularly when their app is closed.
I’m sending notification with excessive precedence so this isn’t a difficulty.
Any assist, what might be potential difficulty with this?
My request to FCM:
POST: https://fcm.googleapis.com/fcm/ship
Authorization: key=xxxx_MY_KEY_XXXXX
Content material-Kind: utility/json
{
"to": "xxxxxMY_FCM_TOKEN_xxxxxx",
"mutable_content": true,
"content_available": true,
"precedence": "excessive",
"information": {
"content material": {
"id": 106,
"channelKey": "remote_chann",
"title": "Whats up",
"physique": "check",
"notificationLayout": "Messaging"
}
}
}
[ad_2]
