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

re-allow notifications doesn't work (most likely still an issue in v16 [160000])

Open kostiantyn-solianyk opened this issue 3 years ago • 5 comments

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:

  1. Wait for prompt to appear
  2. Click Allow
  3. Send notification it will work
  4. Block notification in site settings
  5. Reload the page
  6. Send notification it will not work (as expected)
  7. Unblock notification in site settings - press allow
  8. Reload the page
  9. 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.

kostiantyn-solianyk avatar Oct 23 '20 08:10 kostiantyn-solianyk

Firefox

Chrome

rjcpereira avatar Nov 11 '20 12:11 rjcpereira

Its almost a year still couldn't find solution.. If anyone address the issue, please update

Theepak49 avatar Oct 07 '21 06:10 Theepak49

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.

kostiantyn-solianyk avatar Oct 08 '21 10:10 kostiantyn-solianyk

Your steps clearly explained our issue. any way this won't fix it seems. Is there any other alternative other than this for webpush ?

Theepak49 avatar Oct 08 '21 20:10 Theepak49

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.

rgomezp avatar Oct 12 '21 00:10 rgomezp