IOS - handling silent click notifications when an application is disconnected by a user

I am currently having a problem with push notifications in iOS.

My application receives silent push notifications containing an identifier. This identifier is then used to retrieve data from the remote server from which the local notification is generated.

As far as I know, if the user has a forced close of the application (that is, double-clicking the home button and scrolling to close the application), then a silent push notification is not transmitted to the didReceiveRemoteNotification method in the AppDelegate class [1] [2], thereby allowing the application to do some processing.

I have done a lot of research to address the situation mentioned above. However, he could not find a definitive answer and hoped that someone could help me or point me in the right direction.

TL; DR: what should I do if a user disconnects my application, but I still need to process a silent notification?

Additional Information:
My application should only support iOS8 +.

[1] https://developer.apple.com/library/mac/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html#//apple_ref/doc/uid/TP40008194-CH100-SW1

Notification Payload
If the target application does not start when a notification arrives, a warning message, sound, or icon is played or displayed. If the application is running, the system sends a notification to the application delegate as an NSDictionary object.

[2] https://stackoverflow.com/questions/32785/ ...

+7
ios notifications apple-push-notifications
source share
1 answer

Earlier in iOS 7 and earlier, when the user forced the application to close, he would not be able to start and perform background tasks at all, including location monitoring, processing push notifications using content-available:1 , etc.

However, the problem is that this behavior is not documented. The reason is that it may change in the new iOS update, and Apple doesn't want to nail the coffin too soon. As in iOS 8, PushKit is introduced and is supposed to be able to deal with a forced close scenario. See this guide for more details: https://zeropush.com/guide/guide-to-pushkit-and-voip

+1
source share

All Articles