diff --git a/README.md b/README.md index 5da0195ff9ebb55c0ef169c6e25c56e37c2109b0..ef0d91019b8b9289f530c40b05240cdc1289fc2d 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){