I'm sending a data-message via FCM with HIGH priority.
curl -X POST -H "Authorization: Bearer ya29.c.b0AXv..." -H "Content-Type: application/json" -d '{
"message": {
"topic" : "mytopic",
"data": {
"message": "my_unique_data"
},
"android":{
"priority":"high"
},
}
}' https://fcm.googleapis.com/v1/projects/myproject/messages:send
After receipt - I call a notification. If Android is active, this works.
But if the smartphone's screen is off, and the smartphone is stationary for a while, and I send the data message again, the notification doesn't show up until I little move the phone.
I guess the Android is in DOZE mode, but the documentation states that a high-priority message FCM puts the smartphone out of this mode.
Help solve the problem, please.
There are 2 reasons this may be happening (from here):
So, it sounds like your app's FCM quota was de-prioritized, and you'll need to figure out which scenario applies