Bug 245190 - [GLib] Support push notifications
Summary: [GLib] Support push notifications
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-14 13:12 PDT by Merlijn Sebrechts
Modified: 2024-09-06 10:09 PDT (History)
5 users (show)

See Also:


Attachments
Settings screen in Epiphany (52.12 KB, image/png)
2022-09-14 13:12 PDT, Merlijn Sebrechts
no flags Details
Settings screen in a different browser (89.25 KB, image/png)
2022-09-14 13:13 PDT, Merlijn Sebrechts
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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/