OneSignal-Website-SDK icon indicating copy to clipboard operation
OneSignal-Website-SDK copied to clipboard

Wrong notification permission value (http)

Open rjcpereira opened this issue 3 years ago • 1 comments

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:

Firefox

Chrome

Example https://rjcpereira.com/one-signal/http.html

rjcpereira avatar Nov 05 '20 15:11 rjcpereira

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

devpato avatar Apr 01 '21 17:04 devpato

Since this is not a OneSignal, bug, we can close here and track via Google (above).

rgomezp avatar Feb 21 '23 20:02 rgomezp