diff --git a/README.md b/README.md index 8fce0d246a5cabc455ca07197bda4d4069c37e0a..d5d98110ae11b2ad89efab9cf60ccf1d45d1e3e3 100644 --- a/README.md +++ b/README.md @@ -326,7 +326,8 @@ class App extends Component { // optional, do some component related stuff }); - // sometimes android kills activity when app goes to background, and when resume it broadcasts notification before JS is run. You can use FCM.getInitialNotification() to capture those missed events. + // initial notification contains the notification that launchs the app. If user launchs app by clicking banner, the banner notification info will be here rather than through FCM.on event + // sometimes Android kills activity when app goes to background, and when resume it broadcasts notification before JS is run. You can use FCM.getInitialNotification() to capture those missed events. FCM.getInitialNotification().then(notif=>console.log(notif)); }