You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just realized that OneSignal.promptForPushNotificationsWithUserResponse puts the app in background for half a second when it's called.
I use "react-native-appstate-hook" to detect app state change, and if I comment out this function it no longer goes in background.
I never noticed it before, recent changes were updating onesignal from 4.5.1 to 4.5.2, and react native from 0.69.12 to 0.73.4
obviously this is problematic!
Steps to reproduce?
1- set app an app state listener
2- call promptForPushNotificationsWithUserResponse
3- notice that app goes to background when function is called
What did you expect to happen?
Leave my app foreground, obviously
React Native OneSignal SDK version
4.5.2
Which platform(s) are affected?
iOS
Android
Relevant log output
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
What happened?
I just realized that OneSignal.promptForPushNotificationsWithUserResponse puts the app in background for half a second when it's called.
I use "react-native-appstate-hook" to detect app state change, and if I comment out this function it no longer goes in background.
I never noticed it before, recent changes were updating onesignal from 4.5.1 to 4.5.2, and react native from 0.69.12 to 0.73.4
obviously this is problematic!
Steps to reproduce?
What did you expect to happen?
Leave my app foreground, obviously
React Native OneSignal SDK version
4.5.2
Which platform(s) are affected?
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: