Closed terreng closed 3 weeks ago
Hello @terreng thank you so much for your patience. We're investigating this and will get back to you as soon as possible.
Update?
same here
Apologies that we missed updating this ticket! This issue should now be resolved by using the new method, getPermissionAsync
. Please see our Migration Guide for more details. hasPermission
is now deprecated.
Let us know if you have any questions or concerns!
What happened?
window.plugins.OneSignal.Notifications.hasPermission()
always returnsfalse
when called immediately within the Cordovadeviceready
event, even if permission has been granted. This method may need to be made a promise.Steps to reproduce?
What did you expect to happen?
It should return true if permission has been granted.
OneSignal Cordova SDK version
5.0.1
Which platform(s) are affected?
Relevant log output
No response
Code of Conduct