diff --git a/README.md b/README.md index 1a4fc5f5c58f902004f94636479ec1057bb61748..053c48c20d2993dde23a03a8ed7e57643f9e9312 100644 --- a/README.md +++ b/README.md @@ -90,20 +90,12 @@ in AppDelegate.m add [FIRApp configure]; <-- add this line } -//add this +//add this method - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)notification { [[NSNotificationCenter defaultCenter] postNotificationName: FCMNotificationReceived object:self 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); } ```