Please provide the following:
- SDK Version: 49
- 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!