From aaf2017a8a11a0b40e3a496d60429dd0d869402c Mon Sep 17 00:00:00 2001 From: Libin Lu Date: Fri, 23 Sep 2016 09:46:14 -0400 Subject: [PATCH] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 739ee3a..9b045cd 100644 --- a/README.md +++ b/README.md @@ -163,6 +163,7 @@ Edit `AppDelegate.m`: + [[NSNotificationCenter defaultCenter] postNotificationName:FCMNotificationReceived object:self userInfo:response.notification.request.content.userInfo]; + } + #else ++ //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]; + } -- 2.26.2