Commit 95bd13a6 authored by Libin Lu's avatar Libin Lu
parents 084f4e32 8580469d
there is a known issue with Firebase SDK with iOS 11 (search https://github.com/firebase/quickstart-ios issue number 327)
fix is `pod 'FirebaseInstanceID', "2.0.0"`
Before openning an issue Before openning an issue
1. Reproduce it with the example project in this repo. 1. Reproduce it with the example project in this repo.
2. If you can't receive iOS notification, make sure you can receive notification using quickstart-ios project provided by Firebase team 2. If you can't receive iOS notification, make sure you can receive notification using quickstart-ios project provided by Firebase team
......
...@@ -346,7 +346,7 @@ class App extends Component { ...@@ -346,7 +346,7 @@ class App extends Component {
// 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 // 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. // 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 will be triggered all the time even when open app by icon so send some action identifier when you send notification // initial notification will be triggered all the time even when open app by icon so send some action identifier when you send notification
FCM.getInitialNotification().then(notif=>{ FCM.getInitialNotification().then(notif => {
console.log(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