From 357791e007009f89b2d2b04d55620714f7a40f59 Mon Sep 17 00:00:00 2001 From: Libin Lu Date: Fri, 30 Sep 2016 17:31:00 -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 acc9e4f..37133ed 100644 --- a/README.md +++ b/README.md @@ -167,12 +167,12 @@ Edit `AppDelegate.m`: + -(void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification { + [[NSNotificationCenter defaultCenter] postNotificationName:FCMNotificationReceived object:self + userInfo:notification.userInfo]; + } ++ #endif + + - (void)application:(UIApplication *)application didReceiveRemoteNotification:(nonnull NSDictionary *)userInfo fetchCompletionHandler:(nonnull void (^)(UIBackgroundFetchResult))completionHandler{ + [[NSNotificationCenter defaultCenter] postNotificationName:FCMNotificationReceived object:self userInfo:userInfo]; + completionHandler(UIBackgroundFetchResultNoData); + } -+ #endif ``` ### FCM config file -- 2.26.2