I am trying to send a notification through GCM to my app and it works perfectly as long as the app is open. If the app is in background or killed I don't receive anything until I open the app.
This problem happens only on iOS, on Android it's working as expected.
This is the JSON that is sent to GCM:
{
"to": "xxxxxxxxxxxxxx",
"priority": "high",
"content_available": true,
"notification": {
"sound": "default",
"body": "asldsfsadfsadfs",
"title": "asdfasdfasdfasdf"
},
"data": {
"message": "some message"
}
}
Thanks!