React Native Push Notification stops working after navigating to a different Tab screen
Basically the issue is that – I have a NotificationHandler
that registers and handles remote/push notifications. When I render the NotificationHandler
outside the NavigationContainer
of @react-navigation/native
, the NotificationHandler
stops working. It registers for Push Notification, but does not receive the notification or display it. However, when I render the NotificationHandler
somewhere within the children of NavigationContainer
it works! But! It only works unless you switch the tabs, once you switch the tab, the notifications stop showing up.