Content Accessibility Goal in Push Notification Json?

The goal is to send a push notification only with an icon icon and nothing else (without a banner).

I turned on sdk parsing to check for push notification and send this push notification

{ "alert" :"", "badge" :"787", "Content-available" : "1", "sound" : "" } 

Thus, a push notification was sent when the application is in the background, foreground, and when the application is killed. It is advisable to destroy some data on the arrival of push notifications using the sign valve 78. I am sending the same notification with “Content Available”: “1” is deleted, but everything works fine, as before.

My understanding of “Content Accessibility” was that its value of 1 would allow push notification without warning.

So, I'm confused, or am missing something to find out the meaning of "Content-available" in this JSon push notification.

thanks

+11
ios push-notification apple-push-notifications
source share
1 answer

If you give this key a value of 1 (if the user opens your application in the background or resumes work), the application will be called : didReceiveRemoteNotification: fetchCompletionHandler:.

According to Remote Notification Programming, content-available is defined as

Enter a value of 1 for this key to indicate that new content is available. The inclusion of this key and value means that when your application is launched in the background or resumed, application: didReceiveRemoteNotification: fetchCompletionHandler: is called.

(Newsstand applications are guaranteed to be able to get at least one push with this key from a 24-hour window.)

+7
source share

All Articles