From 492174dbff68d7b911b5f354c9cb1851b66a614b Mon Sep 17 00:00:00 2001 From: Libin Lu Date: Fri, 23 Sep 2016 09:39:44 -0400 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1eeca74..fc900aa 100644 --- a/README.md +++ b/README.md @@ -152,7 +152,7 @@ Edit `AppDelegate.m`: } + #if defined(__IPHONE_10_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0 -+ - (void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification + + withCompletionHandler:(void (^)(UNNotificationPresentationOptions))completionHandler ++ - (void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions))completionHandler + { + [[NSNotificationCenter defaultCenter] postNotificationName:FCMNotificationReceived object:self userInfo:notification.request.content.userInfo]; + completionHandler(UNNotificationPresentationOptionAlert); -- 2.26.2