I was looking into a problem with navigation when the app receives a notification. After adding a little debugging code, I see that I’m getting the same message every time the app reloads in development, on my Android phone.
This is all there is to our notification handler. Something I’m missing?
I’m on SDK 30.
Notifications.addListener(notification => {
console.debug('Listener called with', notification);
NavigationService.navigate(notification.data.routeName, notification.data.params);
if (Platform.OS === 'android')
Notifications.dismissAllNotificationsAsync();
});