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
OneSignal.Notifications.permission and OneSignal.Notifications.permissionNative are only updated after event permissionChange is fired, so the following example outputs two different permissions:
I can imagine this is intended behaviour, but then a custom event handler cannot update the DOM relying on OneSignal.Notifications.permission and OneSignal.Notifications.permissionNative. A workaround is adding a minor timeout (ugh!) inside the event handler.
What browsers are you seeing the problem on?
Chrome (Chromium)
What operating system are you running?
W11
Steps to reproduce?
See issue description
What did you expect to happen?
See issue description
Relevant log output
No response
The text was updated successfully, but these errors were encountered:
lmeurs
changed the title
[Bug]: OneSignal.Notifications.permission only updated after event permissionChange is fired
[Bug]: OneSignal.Notifications.permission only updated after event permissionChange is fired (160001)
Aug 18, 2023
What happened?
OneSignal.Notifications.permission
andOneSignal.Notifications.permissionNative
are only updated after eventpermissionChange
is fired, so the following example outputs two different permissions:I can imagine this is intended behaviour, but then a custom event handler cannot update the DOM relying on
OneSignal.Notifications.permission
andOneSignal.Notifications.permissionNative
. A workaround is adding a minor timeout (ugh!) inside the event handler.What browsers are you seeing the problem on?
Chrome (Chromium)
What operating system are you running?
W11
Steps to reproduce?
What did you expect to happen?
See issue description
Relevant log output
No response
The text was updated successfully, but these errors were encountered: