I am looking at the Parse Push API documentation and have tried it successfully, but is it possible to send multiple push notifications in one network call, for example by sending a JSON array of notifications.
Single notification JSON object as in the official documentation:
{
"where": {
"injuryReports": true
},
"data": {
"alert": "Willie Hayes injured by own pop fly."
}
}
I would like to send multiple notifications using an array instead:
[{
"where": {
"injuryReports": true
},
"data": {
"alert": "Willie Hayes injured by own pop fly 1."
}
},
{
"where": {
"injuryReports": false
},
"data": {
"alert": "Willie Hayes was not injured by own pop fly 2."
}
}
]
An array of notifications does not seem to be supported at this time. I am getting an invalid JSON format error in the response. I was wondering if this is supported, but I am using the wrong JSON structure. If it is not supported, I would request the parse team to support it as it will be very convenient for processing multiple notifications with one API call instead of making a separate network call for each push.