IOS - handling silent click notifications when an application is killed

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 passed 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.

+6
source share
1 answer

As Apple pointed out - application:didReceiveRemoteNotification:fetchCompletionHandler: you can't do much:

However, the system does not start your application automatically if the user has a forced termination. In this situation, the user must restart the application or restart the device before the system starts your application again automatically.

This is to ensure that users can stop unwanted notifications.

+5
source

All Articles