From 20ef4167601c6ca8bb5d3b4b118aff967490369e Mon Sep 17 00:00:00 2001 From: Yee Wong Date: Tue, 29 Nov 2016 21:03:05 +0000 Subject: [PATCH] Fixed typo that caused XCode error: undeclared identifier userInfo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 14d1961..192475e 100644 --- a/README.md +++ b/README.md @@ -195,7 +195,7 @@ Edit `AppDelegate.m`: + + //You can skip this method if you don't want to use local notification + -(void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification { -+ [[NSNotificationCenter defaultCenter] postNotificationName:FCMNotificationReceived object:self + userInfo:notification.userInfo]; ++ [[NSNotificationCenter defaultCenter] postNotificationName:FCMNotificationReceived object:self userInfo:notification.userInfo]; + } + + - (void)application:(UIApplication *)application didReceiveRemoteNotification:(nonnull NSDictionary *)userInfo fetchCompletionHandler:(nonnull void (^)(UIBackgroundFetchResult))completionHandler{ -- 2.26.2