question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Push notification does not trigger `onNotification` on Android

See original GitHub issue

Hi,

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:closed
  • Created 3 years ago
  • Comments:14

github_iconTop GitHub Comments

1reaction
Dallas62commented, May 31, 2020

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.

0reactions
dbarner1commented, Jun 10, 2020

@kovkev This saved the day for me, thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found