I have an iOS app that allows me to receive push notifications through GCM. Having installed everything, I can receive notifications when the application is in the foreground on different Apple devices. However, when the application is in the background, I receive only push notifications for certain devices, namely only my iPhone 6. Other devices, such as the iPhone 5s and iPod Touch, can record notifications only when the application is in the foreground.
I considered other issues related to this problem, an error that I have not seen yet is a specific device model. Often this does not mean that you are not setting the content_available: true setting, but I am setting it. Here is an example of the payload I'm using:
{ "to":".....", "content_available":true, "notification": { "title":"my title", "body":"my body", "sound":"default" } }
I get this background notification exactly how I want on my iPhone 6 (my phone woke up and I see a banner), but other devices (which also use iOS v8.4.1) do not respond to the notification when the application is in the background.
Other information:
- I am using Enterprise build
- I use the APN server for production (and indicate this in the GCM registration settings)
- Although I donβt think it is necessary, I have all the devices registered in my Apple account.
Any thoughts would be appreciated.
source share