I'm sending a simple push notification using the Firebase Web API:
{
"to": "topics/testing",
"notification: {
"title": "",
"body": "This is a test"
},
"data": {
"id" => "123"
}
}
On android I receive this payload in onNotificationOpen (when app is in foreground):
{
"id": 123,
"tap": false,
"body": "This is a test",
"title": ""
}
But on iOS it looks like this:
{
"aps": {
"alert": {
"body": "This is a test",
"title": ""
},
},
"gcm.message_id": "0:xxxxxxxxxxxxxxxxxxxxxxxxxx`,
"id": "53",
"tap": false
}
As you can see in Android I get the title and body as children of notification whereas on iOS they are children of aps.alert.
Is this the indended behavior? I seem to remember that the format was the same the last time I used this plugin.
I'm sending a simple push notification using the Firebase Web API:
On android I receive this payload in
onNotificationOpen(when app is in foreground):But on iOS it looks like this:
As you can see in Android I get the
titleandbodyas children ofnotificationwhereas on iOS they are children ofaps.alert.Is this the indended behavior? I seem to remember that the format was the same the last time I used this plugin.