Bug 245190

Summary: [GLib] Support push notifications
Product: WebKit Reporter: Merlijn Sebrechts <merlijn.sebrechts>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bugs-noreply, guillaume.webkit, kdwkleung, mcatanzaro
Priority: P2    
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Settings screen in Epiphany
none
Settings screen in a different browser none

Description Merlijn Sebrechts 2022-09-14 13:12:15 PDT
Created attachment 462338 [details]
Settings screen in Epiphany

Ubuntu 22.04, Gnome Web 42.4, WebKitGTK 2.36.6

I am unable to turn on notifications in the Outlook Web App. The setting to turn it on on the website is not shown. What I have tried:

* Turn off adblock
* Turn off anti-tracking
* Turn off anti-popup
* Change user agent to chrome on Windows

None of these options make the notification settings visible.


Attached screenshots show the settings pane (https://outlook.office.com/mail/options/general/notifications) in Epiphany and in a different browser. Note how the settings to enable notifications isn't shown in Epiphany.
Comment 1 Merlijn Sebrechts 2022-09-14 13:13:07 PDT
Created attachment 462339 [details]
Settings screen in a different browser
Comment 2 Michael Catanzaro 2022-09-14 13:39:59 PDT
OK, so I think the problem here is these are push notifications. Take a look at https://webkit.org/blog/12945/meet-web-push/ to get an idea for how this works on Apple platforms. Setting up our own push server is surely not going to happen (even if we did, it looks like websites would just not support it) so we'd need to find a way to use push.apple.com. I'm not sure if that's possible or not, but it certainly looks like we're probably not intended to do that? Investigating that seems like the next step. I kinda suspect this is going to be yet another proprietary web feature that won't work outside the major browsers, but would love to be proven wrong....

We'd also need a new daemon equivalent to Apple's webpushd, but we are operating system developers, that would be the easy part.
Comment 3 Kdwk 2023-05-10 00:17:55 PDT
https://conf.linuxappsummit.org/event/5/contributions/149/
I wonder if this might be relevant
Comment 4 Michael Catanzaro 2023-05-11 05:21:38 PDT
And that leads to https://unifiedpush.org/. Haven't looked further yet but it looks like it's designed for use by applications and not by websites? Not sure.

It's very likely that whatever we implement will not be web-compatible unless we use the exact same push server Apple, Chrome, or Firefox.
Comment 5 Kdwk 2023-05-11 05:35:48 PDT
I’m don’t fully understand the contents, but this page may (or may not) be helpful :

https://mozilla-push-service.readthedocs.io/en/latest/