diff --git a/README.md b/README.md index 739ee3ae4e0a8ea04040943e6a95478f28718fa9..9b045cdc929b4da48777c8f9cd8a26fec73ab124 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]; + }