Abilitare le notifiche push non sottoscrive effettivamente se è richiesto il consenso

During initial onboarding, I’ve observed that iOS users will install the forums as a PWA and then receive the notification consent banner when they first open the PWA.
If they click “enable notifications” in this consent banner, they are prompted for permissions and the confirmation notification is sent to them afterwards.

However, this does not actually subscribe users for push notifications, which is unexpected!

It appears that for the notification consent banner, the code here will go down the else path first to request user consent (Notification.requestPermission) but it will NOT subscribe to push notifications (subscribePushNotification).


The workaround at this point is for users to go to their notification preferences and click the “enable notifications” button there.

1 Mi Piace

Thanks so much for the detailed pull request here, will have someone from the team have a look over the next few weeks!

1 Mi Piace