From 2f3dcee9fd0d0db8df04d75a7e08944bf99c6f84 Mon Sep 17 00:00:00 2001 From: Libin Lu Date: Thu, 7 Sep 2017 09:38:55 -0400 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5da0195..ef0d910 100644 --- a/README.md +++ b/README.md @@ -292,7 +292,7 @@ class App extends Component { // store fcm token in your server }); - // NOTE: if you want to handle notifications when app is closed, don't put it in component lifecycle because components won't be initialized. + // NOTE: if you want to handle notifications when app is closed, put another handler outside of component lifecycle because components won't be initialized. this.notificationListener = FCM.on(FCMEvent.Notification, async (notif) => { // there are two parts of notif. notif.notification contains the notification payload, notif.data contains data payload if(notif.local_notification){ -- 2.26.2