React-native-push-notification: Remote Notification tap handler is missing

Created on 12 Dec 2019  路  5Comments  路  Source: zo0r/react-native-push-notification

I have setup remote notifications and everything is working fine on both iOS and Android devices.
All notifications are showing in background and foreground state, but when I tap on a notification app launches only and not navigating user to the appropriate screen e.g. Chat or comments page according to the notification type.

when I remove following code line then app automatically navigates user to the detail screen based on notification type when notification is shown and does not wait for user to tap on notification.

if (userInteraction == false) return

Here is my code:
Screenshot 2019-12-12 at 11 03 09 AM
Screenshot 2019-12-12 at 11 03 47 AM

Stale

Most helpful comment

I am facing the notification tap handling issue. When I tap on notification (and app is closed) I am not getting userInteraction value as true.
it is working fine when app is open.
@anilios did you found any solution ?

All 5 comments

This particular bit of critical functionality was also broken for me.

Which one you are referring Remote Notifications or Notification tap handling?

I am facing the notification tap handling issue. When I tap on notification (and app is closed) I am not getting userInteraction value as true.
it is working fine when app is open.
@anilios did you found any solution ?

I've set up everything properly AFAIK and can only get it working when the app is killed then opened by tapping a notification, rather than it being in the background. Same with the CE fork (see https://github.com/calcazar/react-native-push-notification-CE/issues/12#issuecomment-569587808).

Edit: Another issue here has a solution posted. zo0r/react-native-push-notification#1272

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Benzer1406 picture Benzer1406  路  3Comments

anativ picture anativ  路  3Comments

sungjinoh picture sungjinoh  路  3Comments

nguyenvanphuc2203 picture nguyenvanphuc2203  路  3Comments

Kiran0791 picture Kiran0791  路  3Comments