I am triggering notification using FCM V1 and getting a strange error. This is what my payload looks like:
{
"message": {
"android": {
"notification": {
"body_loc_args": ["test", "notification"],
"title_loc_key": "NOTIFICATION_TITLE",
"body_loc_key": "SUCCESS_MSG"
}
},
"data": {
"test-id": "1"
}
}
}
On foreground and background I receive different payloads on android. Why is it so?
// Background mode
{
"android": {},
"bodyLocArgs": ["test", "notification"],
"bodyLocKey": "SUCCESS_MSG",
"titleLocKey": "NOTIFICATION_TITLE"
}
// Foreground mode
{ "test-id": "1" }
Why is it so?