react-native-firebase icon indicating copy to clipboard operation
react-native-firebase copied to clipboard

getInitialNotification of React Native Firebase returns notification object only for first push notification

Open RajeshMalviya2 opened this issue 1 year ago • 2 comments

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?

RajeshMalviya2 avatar Jan 22 '24 09:01 RajeshMalviya2

Please see if this continues happening with current:

"@react-native-firebase/messaging": "18.0.0").
React Native is on version ^0.66.5.

mikehardy avatar Jan 24 '24 13:01 mikehardy

@mikehardy Happening the same issue with the current.

RajeshMalviya2 avatar Jan 29 '24 02:01 RajeshMalviya2

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.

github-actions[bot] avatar Feb 26 '24 03:02 github-actions[bot]