OneSignal-Website-SDK
OneSignal-Website-SDK copied to clipboard
Wrong notification permission value (http)
Description
Wrong Notification permission value when called OneSignal.getNotificationPermission()
method, after remove manually from Chrome's notifications settings on a HTTP config:
OneSignal.getNotificationPermission(res => console.log(res));
, returns "granted".
If I try to call Notification.permission
on the MY_SITE.os.tc domain, it returns: "default".
The value only gets updated if I call the OneSignal.registerForPushNotifications();
method.
If the user still have the Cookies, Database and Storage data, but it have deleted the browser permission, there is any way to know that? I cant call the OneSignal.registerForPushNotifications();
every time.
Steps to Reproduce Issue:
This is a bug with Chromium (Google Chrome) we have reported the issue to them.
https://bugs.chromium.org/p/chromium/issues/detail?id=1194658
Since this is not a OneSignal, bug, we can close here and track via Google (above).