From d28c61fe2a8047f507b4843bcb24104cb6357a16 Mon Sep 17 00:00:00 2001 From: Libin Lu Date: Wed, 27 Sep 2017 21:51:58 -0400 Subject: [PATCH] Update README.md --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index c1433ef..1e27e41 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 { -- 2.26.2