- Issue created by @2dareis2do
If i understand correctly, one assumption with this module is that notifications are triggered on window load. I believe that paths can be set to trigger this with the default being
Some websites are quite a character, aren’t they? Self-indulgent, impolite at heart, and genuinely unlikeable too. How often do you stumble on a seemingly modest, unpretentious page just to be greeted with a wondrous permissions prompt begging to send you notifications? You haven’t read a single word yet, but there it is, already asking for a long-term commitment — and frankly, quite an invasive one. - https://www.smashingmagazine.com/2019/04/privacy-better-notifications-ux...
In terms of user experience, displaying a permission prompt on load is probably the best way to make a poor first impression, and in most cases an irreversible mistake.
I would like to have the option to switch to triggering the notification using a cta such as a button.
On that page they have an example of such a button, that only displays if notification has not been set for that domain.
I would like to be able to toggle similar functionality here. CTA could be included as part of a custom block type.
I believe this is the main reason some vendors have disabled notification prompt without a user gesture. This change would also overcome that issue, i.e. CTA would not need to be loaded/clicked when failing to set notification due to no user gesture.
Active
1.0
Code