In Fenix, there are reports that turning off site notifications do not stop the notifications from being delivered.
It seems we're missing that part of the system that checks the site permissions before delivering the message to the android notification manager.
With the fix from https://github.com/mozilla-mobile/android-components/issues/7164, I can see that we are still not obeying site permissions so we should still prioritize this.
Yes, decent websites like Twitter are now able to let users unsubscribe from push. But subscriptions which no longer have permission, or never had, still do not obey their notification permission.
If it helps with debugging dholbert reporting on Slack that the website sending him notifications is https://www.ksbw.com/
Looks like we need to depend on the feature-sitepermissions component and query the SitePermissionsStorage.findSitePermissionsBy before showing the notification.
Some questions I have are:
origin come from the engine itself or are we stripping it down to the host name?Maybe @Amejia481 might know?
SitePermissionsStorage
Thanks Arturo!
As I started working on this, it looks like we need https://github.com/mozilla-mobile/android-components/issues/7297 in order to query the storage permissions first. We have the tag but this might not be a stable ID.
fwiw, I also still see this for twitter. See also https://www.reddit.com/r/firefox/comments/h9dvxe/how_to_disable_notifications_twitter_in_firefox/
I've also been encountering "breaking news!" notifications in the last couple of days, since updating to Firefox Preview 5.2 on Android. After doing some digging on Reddit and GitHub, I ended up at this thread.
I'm really surprised because I have set site notifications to "ask first", and I deleted all site exceptions yesterday. I still get those pesky notifications every few hours. What really surprises me is that I've closed all tabs, so I really don't know where the site notifications are coming from.
For now I've disabled site notifications for the entire Firefox app in the Android app notification settings. I can re-enable them if any of you would like help tracking down this issue. I haven't been able to find what site originates those notifications, because they tend to have generic titles and icons, and clicking on them doesn't open any new page.
@mvdan the origin of the issue is known and a fix is in the works.
What really surprises me is that I've closed all tabs, so really don't know where the site notifications are coming from.
Web Notifications are mostly supported by Web Push which isn't attached to a tab, but a Service Worker in the browser.
Hoping to allocate time in the coming week to fix this bug.
Most helpful comment
Web Notifications are mostly supported by Web Push which isn't attached to a tab, but a Service Worker in the browser.
Hoping to allocate time in the coming week to fix this bug.