I'm making set of scripts in kotlin for testing push notifications in order to refactor notification-related legacy code. I need to send post request to gcm server with such payload that would result in notification that arrives at my phone containing field "gcm.notification.body" and I cant seem to be able to do it. Currently I'm trying to figure out the payload by using Postman. "Closest" I got is "gcm.notification.data" and "fcm.notification.body".
First with this request body:
{
"to": "someDeviceToken",
"notification":{
"data":{
"title": "Title supported",
"message": "Notification Message",
"type": "example",
"id": 345,
"priority": 1,
"data": {
"images": [
"https://someimage.com/image.png"
]
}
}
}
}
Second with this one:
{
"to": "someDeviceToken",
"data":{
"fcm.notification.body":{
"title": "Title supported",
"message": "Notification Message",
"type": "example",
"id": 345,
"priority": 1,
"data": {
"images": [
"https://someimage.com/image.png"
]
}
}
}
}
I can't find anything anywhere. Thank you