React-native-push-notification: App boots when notification is received

Created on 17 Sep 2018  路  2Comments  路  Source: zo0r/react-native-push-notification

Hello -

We're having an issue where our App is booting when a notification is received on Android.

We understand this is probably because we're using the 'data' field on the payload from our server - and that's causing onMessageReceived to fire - causing our entire app to boot up.

But that's not ideal or intended - it's causing lots of unintended behaviour, because our navigation then doesn't work when the user opens the app after it's booted from the notification.

Stale

Most helpful comment

All 2 comments

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings