Duplicate notification each reload as soon as addListener is called


#1

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();
            });

#2

Thank you bro. That’s also my problem


closed #3

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.