I'm integrating react native app and firebase to push notification. I'm using react-native-firebase at https://rnfirebase.io/ It's working fine on iOs 11 but It doesn't work on iOs 10 when app is closed/killed (only work once app is background/foreground) Do you guys have any idea/solution for this one ???
Asked
Active
Viewed 880 times
0
-
have you tried the `firebase` lib? use `npm install --save --save-exact firebase@5.0.2` – MohamadKh75 Jun 08 '18 at 02:12
-
@Khajavi: Thanks your feedback. Yes, it's already in the my app. It's working fine on iOs 11. But iOs 10 it's not working once app is closed/killed – Shine Jun 08 '18 at 02:18
-
are you using a iOS simulator? – MohamadKh75 Jun 08 '18 at 02:24
-
@Khajavi: No, i'm using my phone - iPhone 6+ running ios 10.2 – Shine Jun 08 '18 at 05:00
1 Answers
0

MohamadKh75
- 2,582
- 5
- 28
- 54
-
Thanks for feeback. But i don't think so.. Docs says this: - App in foreground: onNotification triggered - App in background: onNotificationDisplayed triggered if content_available set to true onNotificationOpened triggered if the notification is tapped - App closed: getInitialNotification is populated if the notification is tapped and opens the app – Shine Jun 08 '18 at 02:58
-
@Shine you asked for killed-app scenario, which is mentioned `Received when app is next time opened` – MohamadKh75 Jun 08 '18 at 03:13
-
@Khajavi: it's Data-only messages type, we are not using it. We are using Notification Message from Firebase -> please see docs here: https://rnfirebase.io/docs/v4.2.x/notifications/introduction – Shine Jun 08 '18 at 03:31