I have a JSON formatted like this:
{
"message":"something",
"data":{
"id":"id",
"name":"new name"
}
}
With this format, in Xiaomi Mi4 device, I can process my action with onMessageReceived()
in background state and foreground state.
But, in Oppo A71 device, I can process it only in foreground state.
I'm trying to send a notification from my Firebase console. And I get the same condition when my app is in background state for Oppo A71 device, I get no notification.
Why this happened? And how to solve it?