Notifications are shown, Listeners not triggered

Please provide the following:

  1. SDK Version: 40.0.0
  2. Platforms(Android/iOS/web/all): Android, iOS

Hello,

I have setup Expo Notifications on my app with FCM and APN. Everything is working fine the notifications are presented as required.

The problem is that inside my app I have a Chat screen which needs to be updated every time a user posts a new message.

When I use Expo Push Notifications Tool to teste in expo client, the listener function gets fired but when I build to an APK / ipa, the listener does not seem to be fired (even tried with an Alert.alert()).

I’m setting the notification handler in the navigation index of my app (which is loaded after user login). And my listener is in a chat screen which is nested to a couple of screens.

I’ts very weird that it’s only working in expo client and not standalone app.