GCM support for ios application when used in the background or

Hi everyone, I am integrating GCM into an iOS application using the following link

https://developers.google.com/cloud-messaging/ios/start .

I also uploaded the certificates when setting up the file for certain steps.

I also managed to get a notification, but the problem is that I do not receive a notification when the application is killed or in the background. Is there any implementation for receiving a notification in the background or for destroying an ios application since I searched a lot for this and found nothing fruitful.

So any help would be appreciated Thanks ..

+5
source share
1 answer

I had the same problem and I sent a detailed question later. Fortunately, I understood the problem, and now it works for me. I did not send the data in the proper format, which worked after I sent the data in the proper format. My JSON format looks like this.

{ "notification":{ "badge":"12", "alert":"default", "sound":"default", "title":"default" }, "content_available":true, "to":"YOUR_KEY_HERE" } 

Since in your implementation there is no data on the server. You can send my question for more information.

GCM push notification for iOS with content_available (does not work for calling from an inactive state)

+5
source

All Articles