There's been trending topics about Firebase Cloud Messaging that Data Payload message is not fired from onMessageReceived()
method for some lower-end devices. And it's true. Here is the result:
App getting killed scenario:
Devices got data payload:
- Nexus 5X : OS 7.1
Devices didn't get data payload:
- Xiaomi MI 4C : OS 5.1
- Huawei LUA-U22 : OS 5.1
Be ensured that I'm not sending notification key from Server/Postman.
I am looking for the solution, I got data payload from Firebase including all types of devices, OS & obviously from API level 15. My Postman details are as follows.
{
"registration_ids": ["fC5uxGSRCsg:APA91bHh9fMXQ41LpX6tjjSsBKGrKTWYpzKimLDzvBGSHDPo2pq87JHqogUp2kqrmJi06siG_p6DfgRCim23iFzlBQAIrgtMDqRW4s39zUqv9CzyPqzxVl5PtnHPRDs4OagTuTePNyDI"],
"data": {
"title" : "my_custom_value",
"message" : "tekksdasdasdsa",
"isBackground" : "",
"payload" : {
},
"timestamp" : "",
"imageUrl" : "",
}
}