Clicking on push notification on android is not calling onNotificationOpenedApp or getInitialNotification #4561
Unanswered
Aayushi1301
asked this question in
Q&A
Replies: 1 comment 2 replies
-
This sounds like it would be an issue, not a discussion, and we would need the information in AndroidManifest and package.json to check. This is usually something to do with a mis-configured integration with splash screens, specifically crazycodeboy/react-native-splash-screen#289 (comment) - for which I recommend dumping that module and using react-native-boot-splash as it doesn't suffer the Intent.getExtras passing problem that causes this on Android normally |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using
"@react-native-firebase/app": "^9.0.0",
"@react-native-firebase/messaging": "^8.0.1"
As mentioned in the documentation, https://rnfirebase.io/messaging/notifications#handling-interaction, firebase listeners onNotificationOpenedApp or getInitialNotification should be called respectively on clicking on push notification from background/quit state. This works on iOS but on android these listeners are not called. I am using notification+data payload.
I have a "click-action" as a string in data part. Can it be the reason for interfering with the firebase listeners. The same payload with "click-action" on iOS calls onNotificationOpenedApp and getInitialNotification.
Beta Was this translation helpful? Give feedback.
All reactions