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/ ...
ios notifications apple-push-notifications
user2472819
source share