From d9f215f3aa012179209c181287fcb4e0deb20ca8 Mon Sep 17 00:00:00 2001 From: Libin Lu Date: Tue, 26 Sep 2017 09:21:33 -0400 Subject: [PATCH] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8fce0d2..d5d9811 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)); } -- 2.26.2