react-native-onesignal
react-native-onesignal copied to clipboard
[question]: Handle notification click when app is not in foreground/open ?
How can we help?
OneSignal.setNotificationOpenedHandler does not exist in v5 afaik i've tried everything and it is undefined/ not here anymore. Is it impossible to deepLink with notification and open the app/put it to foreground ? With expo we use only one hook and it does the job: Notifications.useLastNotificationResponse(); If this is impossible with oneSignal this is kind of a deal breaker. Also i contacted support they told me to use OneSignal.Notifications.addEventListener('click', (event)) Which i use already but works only when the app is in foreground... and after that support ghosted me...
Code of Conduct
- [X] I agree to follow this project's Code of Conduct