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
react-native-onesignal version 5.1.2 OneSignal.Notifications.canRequestPermission is not working as expected. Should it return true even if the user denied the native system prompt for android version 13. I am yet to check it for iOS.
canRequestPermission only returns true if the device has never been prompted for push notification permission. So if a user denies the prompt then it will return false.
Please let us know if you have any additional questions or concerns!
Thank you for taking out the time to reply,
but canRequestPermission is not working like that and if a user denies the system prompt it still returns true.
I have attached the device logs herewith. device_log.txt
What happened?
react-native-onesignal version 5.1.2 OneSignal.Notifications.canRequestPermission is not working as expected. Should it return true even if the user denied the native system prompt for android version 13. I am yet to check it for iOS.
Steps to reproduce?
What did you expect to happen?
in the above code i would expect granted to be false and canrequest to be false if the user has denied the native system prompt.
React Native OneSignal SDK version
5.1.2
Which platform(s) are affected?
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: