Can apple silent push notification lunch my app in background after killing app using app switcher?

i want to insert push notification data into sqlite even if my app is in not running state(Close state). How do i achieve this???

Type of Notification is silent push notification.


Currently i am using method:


- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))handler


this method is not running and handaling my custom method when app is killed.

so, is there any possibility to run my code(custom method) when app is killed using silent push notification?


Please answer me urgently.

Thank you in advance

No, not with normal push notifications, according to the documentation:

"However, the system does not automatically launch your app if the user has force-quit it. In that situation, the user must relaunch your app or restart the device before the system attempts to launch your app automatically again."

Apparently, the PushKit framework can do what you want, though.

Can apple silent push notification lunch my app in background after killing app using app switcher?
 
 
Q