diff --git a/README.md b/README.md index c1433effa5eea8fd32a05c76539be4ea0c785b0d..1e27e41f674608731dbe4345a98a57fbce9f51e5 100644 --- a/README.md +++ b/README.md @@ -223,10 +223,17 @@ Edit `AppDelegate.m`: + [RNFIRMessaging willPresentNotification:notification withCompletionHandler:completionHandler]; + } + ++ #if defined(__IPHONE_11_0) + - (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void (^)(void))completionHandler + { + [RNFIRMessaging didReceiveNotificationResponse:response withCompletionHandler:completionHandler]; + } ++ #else ++ - (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void(^)())completionHandler ++ { ++ [RNFIRMessaging didReceiveNotificationResponse:response withCompletionHandler:completionHandler]; ++ } ++ #endif + + //You can skip this method if you don't want to use local notification + -(void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification {