As far as I know most browsers (e.g. Firefox) do not trigger the notification permission request unless the request was triggered by a manual click e.g. in a custom modal. The current behavior (automatically requesting the permission on first page visit even for guest users) will not actually trigger the permission request on such browsers anymore. I think chrome decides if the permission request dialog is triggered depending on how many users declined/approved the permission for a certain site.
In the community this is currently blocked:
Access the community login page as guest
Clear the notification permission (if already granted)
Reload the page
Expected behavior
Since we also request notification permissions for guests the notificatoin permission request of the browser should be triggered.
Actual behavior
Chrome will only render a moving notification icon in the status bar. The permission request is only visible when clicking on the notification icon. (same with firefox)
Possible solution:
This probably also (or only?) needs to be fixed for non push notifications in the core.
Do not request notification permission as guest
Implement proper permission request dialog (e.g. confirm modal) and then trigger browser request.
See https://developers.google.com/web/fundamentals/push-notifications/permission-ux
As far as I know most browsers (e.g. Firefox) do not trigger the notification permission request unless the request was triggered by a manual click e.g. in a custom modal. The current behavior (automatically requesting the permission on first page visit even for guest users) will not actually trigger the permission request on such browsers anymore. I think chrome decides if the permission request dialog is triggered depending on how many users declined/approved the permission for a certain site.
In the community this is currently blocked:
Expected behavior Since we also request notification permissions for guests the notificatoin permission request of the browser should be triggered.
Actual behavior Chrome will only render a moving notification icon in the status bar. The permission request is only visible when clicking on the notification icon. (same with firefox)
Possible solution:
This probably also (or only?) needs to be fixed for non push notifications in the core.