Commit 25ffc54e authored by Libin Lu's avatar Libin Lu Committed by GitHub

Merge pull request #206 from ywongweb/master

Fixed typo that caused XCode error: undeclared identifier userInfo
parents 40c7ee12 20ef4167
...@@ -195,7 +195,7 @@ Edit `AppDelegate.m`: ...@@ -195,7 +195,7 @@ Edit `AppDelegate.m`:
+ +
+ //You can skip this method if you don't want to use local notification + //You can skip this method if you don't want to use local notification
+ -(void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)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{ + - (void)application:(UIApplication *)application didReceiveRemoteNotification:(nonnull NSDictionary *)userInfo fetchCompletionHandler:(nonnull void (^)(UIBackgroundFetchResult))completionHandler{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment