Relative Content

Tag Archive for iosobjective-creact-nativepush-notificationapple-push-notifications

Remote notification in IOS

– (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler { NSLog(@”Remote message received.”); [RNCPushNotificationIOS didReceiveRemoteNotification:userInfo fetchCompletionHandler:completionHandler]; completionHandler(UIBackgroundFetchResultNewData); } above delegate not being triggered while receiving remote notification when iOS app is in background or quit state. but in foreground state below one is working -(void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler { NSLog(@”willPresentNotification delegate triggered”); // NSLog(@”Foreground […]