Notification handling - difference between background and closed app


#1

https://docs.expo.io/versions/latest/guides/push-notifications#notification-handling-timing-111

AFAIK the origin is returned as ‘selected’ when the push notification is selected and the app is in the background.
The same is returned if the push notification is selected and the app was shutdown.

I need to differentiate between the two as the shutdown should redirect to a different route.
I’m using graphql/apollo subscriptions so when app is in foreground/background, everything just works readily.
I dont think AppState is useful to me here?

Any suggestions?


closed #3

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