react-native-firebase
react-native-firebase copied to clipboard
getInitialNotification of React Native Firebase returns notification object only for first push notification
I have encountered a peculiar issue with @react-native-firebase/messaging. Everything is working well on Android and iOS except in the following scenario:
Clicking on one notification opens the app, and getInitialNotification() provides the clicked notification, allowing me to handle it.
However, when I close the app completely and then click on another notification, the app opens again, but getInitialNotification() returns null.
Here is some information about the setup:
I am using the most recent versions of @react-native-firebase/app and /messaging ("@react-native-firebase/app": "18.0.0", "@react-native-firebase/messaging": "18.0.0"). React Native is on version ^0.66.5. The app is calling getInitialNotification() in an index.tsx(). Could you please assist me in addressing this issue?
Please see if this continues happening with current:
"@react-native-firebase/messaging": "18.0.0").
React Native is on version ^0.66.5.
@mikehardy Happening the same issue with the current.
Hello 👋, to help manage issues we automatically close stale issues.
This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?
This issue will be closed in 15 days if no further activity occurs.
Thank you for your contributions.