I want to show show notification based on some condition when receive silent notification then generate local notification. also enable background mode in xcode and enable remote-notification and background fetch. For silent notification message format like this-
{
"message":{
"token":"iosdevicetoken",
"apns": {
"payload": {
"aps": {
"content-available": 1,
"category": "GENERAL",
"priority": "high",
"token": "randomkey",
"customkey": "abcs"
}
}
}
}
}
but below delegate method does not called when app in killed state(swipe from background state)
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler {
}