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:


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.
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 ?