New notification permissions request bar?

Seeing as we already need to ship this functionality for Android, I think a per-user switch that affects all of your devices is the best. Make it a checkbox, “Receive push notifications even while not on the site” with helper text.

Android would get a … disabled checkbox, or something. I was thinking that out and not quite sure how to represent that. mmmm

Also have a site setting that disables (not enables) this for privacy-sensitive forums.


required states for UI:

Notifications (this device): [[ Enabled | Disabled-LocalStorage | Need-Permission | Denied-Permission ]]

Push notifications (account): [[ Enabled | Disabled | Enabled-Android | Disabled-Android | Enabled-NeedPermission | Enabled-Android-NeedPermission ]]

Desktop:

[[ Notifications button ]]
[ x ] Receive push notifications even while not on the site (account setting)

Privacy note: Your browser vendor will be able to see the timing and quantity of notifications you receive.

Android:

[[ Notifications button ]]
<input type=checkbox checked disabled> Receive push notifications even while not on the site

Non-push notifications are not available on Android.

[ x ] Receive push notifications even while not on the site (account setting)

This only applies to your non-Android devices.

3 Likes