This article is an English translation of the original Japanese article.
When a user taps a push notification, the entry point differs depending on whether the app is running. If you only use one listener with Expo Router to navigate to the notification target screen, you may miss launches from the terminated state.
In my app, I handle both cases with two separate mechanisms:
getLastNotificationResponseAsync(): when the app launches from a notification tap
addNotificationResponseReceivedListener(): when a notification is tapped while the app is running






