I am working on a app, where I need to send a push notification to the app to start processing data as needed.
How do I send a
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
To make this works you need to do few step:
set background mode remote-notification
application:didReceiveRemoteNotification:fetchCompletionHandler: method in app delegate
and make sure push notification payload contains key
"content-available" : 1