I'm using GCM example app for iOS from google. So far the app works when the app is on the foreground and background i.e. it receive a message I sent using postman. But when I force the app to quit, it doesn't receive my message anymore. I do set "priority" parameters to high as suggested by virtually everyone, but the app is still doesn't receive any message after force quit.
Here's my JSON to GCM server:
{
"notification": {
"message" : "great match!"
},
"data": {
"msg" : "great match!",
"title" : "Portugal vs. Denmark"
},
"to" : "<MY-TOKEN>",
"content_available" : true,
"priority": "high"
}
And the response from GCM is:
{
"multicast_id": 6087504353579807411,
"success": 1,
"failure": 0,
"canonical_ids": 0,
"results": [
{
"message_id": "0:1460007343814475%c3a976d6c3a976d6"
}
]
}
I saw this question that says, it is not possible to receive push notification when the app is force-quit. But in the other hand, this issue seems to say otherwise.
So, my question is:
- Is it possible for iOS app to receive GCM push notification after the app is forced to quit?
- If it is possible, then what else can I try since setting "priority" to high doesn't work.