Commit d9f215f3 authored by Libin Lu's avatar Libin Lu Committed by GitHub

Update README.md

parent 74715e85
...@@ -326,7 +326,8 @@ class App extends Component { ...@@ -326,7 +326,8 @@ class App extends Component {
// optional, do some component related stuff // 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)); FCM.getInitialNotification().then(notif=>console.log(notif));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment