From e1a211624a87a2d955e4465579f86efe45779603 Mon Sep 17 00:00:00 2001 From: Libin Lu Date: Thu, 9 Jun 2016 10:16:51 -0400 Subject: [PATCH] Update README.md --- README.md | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/README.md b/README.md index 1a4fc5f..053c48c 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); } ``` -- 2.26.2