Push notification does not trigger `onNotification` on Android
See original GitHub issueHi,
When I click on a push notification on Android, it does not trigger the onNotification
function. Also, clicking an action button on the notification (eg. “Yes”, “No”), does nothing. It only blinks the button and the push notification does not even go away.
I don’t know, what would be a good way to troubleshoot the issue? I’m glad I’m receiving push notifications, but now I’d like to be able to use them accordingly.
Thank you,
kovkev
Issue Analytics
- State:
- Created 3 years ago
- Comments:14
Top Results From Across the Web
react-native push notification onNotification doesn't trigger
Its common issue, the issue occurs when using splash screen. Edit the manifest like this: <activity android:name=".
Read more >How to use the react-native-push-notification.configure ... - Snyk
To help you get started, we've selected a few react-native-push-notification.configure examples, based on popular ways it is used in public projects.
Read more >Handling Incoming Push Notifications in AWS Amplify - Medium
Setting up Android Push Notifications with AWS Amplify ... It will also not trigger if a push notification is received while the app...
Read more >Handling Incoming Push Notifications in AWS Amplify
Overview AWS Amplify provides two push notification configuration functions ... This process does not open the closed app into your Android ...
Read more >react-native-push-notification - npm
React Native Local and Remote Notifications for iOS and Android ... If you do, notification handlers will not fire, because they are not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @kovkev There is many indent on
PushNotification.configure
. To work correctly, I suggest you to move it outside of a component,onNotification
will not be called if the component is not mounted.@kovkev This saved the day for me, thanks!