I am trying to open the app on a specific screen when my users tap a notification. I have seen several messages on this forum that say to simply use the Notification listener to handle it.
The problem is that listeners only work when the app is opened.
When it is closed, tapping the notification opens the app but does not trigger the listener added with addNotificationReceivedListener.
I have read that app’s root component receives the notification data from expo through its props. However, even though I do have an exp object in my props, it does not contain a notification object.
How can I react to the user tapping a notification when the app is closed?
There is more. Notifications received while the app was in foreground were automatically dismissed (which is good). But since I applied the solution above, they aren’t anymore. Even though I have now reverted the app.json settings from said solution.