Commit e1a21162 authored by Libin Lu's avatar Libin Lu

Update README.md

parent e4aefd74
...@@ -90,20 +90,12 @@ in AppDelegate.m add ...@@ -90,20 +90,12 @@ in AppDelegate.m add
[FIRApp configure]; <-- add this line [FIRApp configure]; <-- add this line
} }
//add this //add this method
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)notification { - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)notification {
[[NSNotificationCenter defaultCenter] postNotificationName: FCMNotificationReceived [[NSNotificationCenter defaultCenter] postNotificationName: FCMNotificationReceived
object:self object:self
userInfo:notification]; userInfo:notification];
}
//add this
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)notification fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))handler {
[[NSNotificationCenter defaultCenter] postNotificationName:FCMNotificationReceived
object:self
userInfo:notification];
handler(UIBackgroundFetchResultNoData);
} }
``` ```
......
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