iphone - didReceiveRemoteNotification is not being called in background mode until I do not tap on notification in ios -
Text after "
I searched for hours, but somewhere that is saying,
< code> - (void) application: (UIApplication *) application didReceiveRemoteNotification: (NSDictionary *) userInfo fetchCompletionHandler: (void (^) (UIBackgroundFetchResult)) called completionHandlerNotification, regardless of the application In active state or inactive state without doing. Somewhere call it say when the application is not pushing active notification your
didFinishLaunchingWithOptions and there you can find such notifications:
NSDictionary * userInfo = [launchOptions objectForKey: UIApplicationLaunchOptionsRemoteNotificationKey] in my case, both are working if the tape user notification and everything is fine, but occurs when the user notification and not directly open the app icon, tap issue, Neither
did FinishLaunchingWithOptions indicates that it is not reported nor does
didReiveiveRemoteNotification appear. How do I tap on the notification, save the messages in the database without calling the method, need to get from the push notification?
<(UIApplication *) application didFinishLaunchingWithOptions :: (NSDictionary *) launchOptions {(launchOptions if (bool) application - p >didFinishLaunchingWithOptions to the code
! = null) {NSDictionary * Rimotnotif = [launch Option Objektforki: Uaiapiplikeshn launch option Remonet notification]; If (remoteNotif = zero!) {[UIApplication sharedApplication] .applicationIconBadgeNumber = [[[remoteNotif objectForKey: @ "APS"] objectForKey: @ "Tomcat"] integerValue]; // do something here to process the notification}}}
Comments
Post a Comment