The default format would look like this:
{
"default" : "Message"
}
In order to get sound for push notifications on iOS, the JSON payload should look like this:
{
"default" : "Message",
{ "APNS":"{\"aps\":{\"alert\":{\"loc-key\":\"%@\", \"loc-args\":[\"Message\"]}, \"sound\":\"default\"} }" }
}
Why does the payload look like this? I have no idea. The point is that it works at the moment this article was written. I've found it somewhere on stackoverflow, but I can't find it again, so I'm just posting it here for whomever needs this information.
No comments:
Post a Comment