react-native-push-notification / ios

React Native Push Notification API for iOS.
MIT License
745 stars 285 forks source link

How to get if the app was moved to foreground from a push notification? #360

Open mendozammatias opened 2 years ago

mendozammatias commented 2 years ago

We have an app with a chat and we need to redirect users to the chat when they tap on the push notification.

As documented, getInitialNotification() only returns the value of what launched the app (from killed state) but is there any callback for what moved the app to foreground (from minimized state)?

I think this is a very common use case.

Thanks in advance.