wix / react-native-notifications

React Native Notifications
MIT License
3.25k stars 764 forks source link

OnClick on the notification takes to the starting page of the navigation. #846

Closed Gowthamraj2399 closed 2 years ago

Gowthamraj2399 commented 2 years ago

The navigation inside registerNotificationOpened event takes me to the initial page of the navigation stack.

Notifications.events().registerNotificationOpened(notification => { console.log('Notification opened by device user', notification.payload); RootNavigation.navigate('Chat'); });

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] commented 2 years ago

The issue has been closed for inactivity.

AftabUfaq commented 2 years ago

any solution for this

Epick362 commented 1 year ago

I think your issue stems from the fact that your initial navigator (possible some only for unauthorized users) does not contain the actual route you are trying to navigate to because it gets mounted after authentication happened. React-navigation threw an error in the packager so try to look for it.