Expo Notifications showing data object instead of body in notification pop-up.

Please provide the following:

  1. SDK Version: 49
  2. Platforms(Android/iOS/web/all): Android

Expo Notifications showing data object instead of body in notification pop-up. If we dont send data object then it shows {} empty in notification.
Below is the CURL:

curl --location ‘https://exp.host/--/api/v2/push/send
–header ‘Content-Type: application/json’
–data ‘[
{
“to”: “ExponentPushToken[JOCF7SH3UZRx8VmQIAD4qO]”,
“title”: “This is expo notif”,
“body”: “Body where skeleton stays”,
“data”: {
“extra”: “data not required”
},
“badge”: 1
}
]’

Attached image explains everything!

Screenshot 2023-07-21 174256

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.