I have noticed that when triggering a push notification containing a deeplink, My android device doesn't process the notification correctly. The issue comes from the payload that generates a notification object like below.
{
"message": {
"token": "c",
"data": {
"body": "B",
"_id": "0",
"_mId": "4",
"title": "N",
"type": "",
"game": "",
"media_url": "https:/",
"media_url2": "",
"url_ext": "",
"url": "m",
"delivery_option": "android"
},
"android": {
"collapse_key": "4",
"priority": "HIGH"
}
},
"notification": {
"title": "N",
"body": "B"
}
}
- If the "notification" object is present and the app is in the background:
- The "data" object payload will be ignored.
- When the user clicks the push notification:
- The app will launch.
- The user will remain on the home page instead of being redirected to the desired deep link (passed in the "url" parameter).
I am trying to find out what generates that object as I cannot see anything in my delivery template.