OneSignal-Website-SDK
OneSignal-Website-SDK copied to clipboard
re-allow notifications doesn't work (most likely still an issue in v16 [160000])
Description:
Notifications work as expected until we block them for a while, and then when we decide to allow them again, we can't get notifications at all - and that's weird.
Typical use cases: user gets notifications, but for the next day decided to block notification just not to be distracted, and after that decided to allow again to be notified, but user will no longer be able to receive them.
Steps to Reproduce Issue:
- Wait for prompt to appear
- Click Allow
- Send notification it will work
- Block notification in site settings
- Reload the page
- Send notification it will not work (as expected)
- Unblock notification in site settings - press allow
- Reload the page
- Send a message it will not work (but... notifications allowed) Can't receive notification at all after these steps
Anything else: After steps above I can see that my user in Onesignal dashboard has status "Not Subscribed", and can't get notifications.
Its almost a year still couldn't find solution.. If anyone address the issue, please update
I had a long talk with support maybe a year ago or even more, and I remember they answered that it’s not possible to fix it because they didn’t understand the issue, and didn't know how to fix the issue because for them it was normal behavior of the browser which isn't true... FYI a lot of people faces the same bug for more than 2 years or even more.
Your steps clearly explained our issue. any way this won't fix it seems. Is there any other alternative other than this for webpush ?
Howdy, Thanks for your patience. There is currently a PR in the works (https://github.com/OneSignal/OneSignal-Website-SDK/pull/752) that should fix the issue. However, please note that this problem resolves itself after a new session is triggered on the site (it takes 30 seconds). You can test this by simply closing your tab for 30 seconds and re-opening it after changing the permission back to Allow.
Hopefully this helps ease some fears about the issue.