0

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!

Potecuta
  • 85
  • 1
  • 7
  • Can you provide us the logs? For the meantime, you may check this stack overflow ticket which is related to your case: http://stackoverflow.com/questions/32134815/google-cloud-messaging-dont-receive-alerts-when-ios-app-is-in-background – Android Enthusiast Dec 23 '15 at 11:07
  • I found this link (http://stackoverflow.com/questions/14616261/receiving-push-notifications-while-in-background) which might help you. – Android Enthusiast Dec 30 '15 at 01:35

0 Answers0