Firebase Cloud Messaging topics were discussed that the Data Payload message does not start from the method onMessageReceived()for some lower-level devices. And it is true. Here is the result:
Script of the application killed:
Devices received a data payload:
Devices did not receive data payload:
- Xiaomi MI 4C: OS 5.1
- Huawei LUA-U22: OS 5.1
Make sure that I do not send a notification from the server / mail manager.
I'm looking for a solution, I got a payload from Firebase, including all types of devices, OS, and, obviously, from API level 15. My Postman data is as follows.
{
"registration_ids": ["fC5uxGSRCsg:APA91bHh9fMXQ41LpX6tjjSsBKGrKTWYpzKimLDzvBGSHDPo2pq87JHqogUp2kqrmJi06siG_p6DfgRCim23iFzlBQAIrgtMDqRW4s39zUqv9CzyPqzxVl5PtnHPRDs4OagTuTePNyDI"],
"data": {
"title" : "my_custom_value",
"message" : "tekksdasdasdsa",
"isBackground" : "",
"payload" : {
},
"timestamp" : "",
"imageUrl" : "",
}
}