Hey everyone,
I am trying to set up push-notifications for the android version of our ionic app (using Parse-JS-SDK) with back4app.com . I’ve followed the guides and set up firebase and checked from over there that notifications work and show up (they do). However, when I try to sent them over Parse - either the dashboard or via cURL - I can’t see them. My cURL:
curl -X POST \
-H "X-Parse-Application-Id: XXXX" \
-H "X-Parse-Master-Key: XXXX" \
-H "Content-Type: application/json" \
-d '{
"where": {
"deviceType": {
"$in": [
"ios",
"android"
]
}
},
"data":{
"title": "Yeah", "badge": 1, "body": "content"
}
}'\ https://parseapi.back4app.com/parse/push
Putting the app in foreground, and alerting the content, I can see that they differ in structure from the firebase-own version:
Firebase version:
Parse data:
It looks like the parse-server is not unwrapping the data (instead it is converted to a string?) but instead puts it into another data
-field. Dropping the data
-wrap from the cURL just gives an empty notification.
What am I doing wrong? How does it work for others? Did I overlook a setting or do I need to post the content differently? Any hints appreciated!