🤯 🤯

  • I've ported UnifiedPush to Firefox, so it can receive background notifications using the service you want, specially useful for PWA (installable web application)
  • ntfy provides a PWA
  • So I can receive ntfy notifications with their PWA through any push service, for instance using Sunup :D

#UnifiedPush #PWA #Firefox #ntfy #PushNotifications

@S1m Can you break it down? Like in a demo video? That all sounds cool, however I'm not wooed yet.

@sbb

  • I open Sunup to show that there isn't any registration for ntfy.sh yet
  • I open Firefox and install the PWA of ntfy.sh
  • I open the PWA of ntfy.sh, we can see a Toast from Sunup to inform about a new registration
  • I close the PWA and Firefox
  • I open Sunup to show the new registration for ntfy.sh, from Firefox
  • I receive "hi!!" in ntfy.sh (that I've sent from CLI)
  • I open Sunup again, and we can see the message counter for the registration for ntfy.sh is now at 1
  • @sbb @S1m this means working push notifications for any good web app. Entirely without Google play services!
    Some apps that rely on FCM for their native apps do support webpush and by extension unfiedpush on their webapps

    @shadowwwind @sbb It will work for applications that support web push notifications.

    I don't know for all the applications but ProtonMail doesn't support web push, and Telegram doesn't really support web push (they use an incompatible draft of the spec published and deprecated in 2016)

    @S1m @sbb that would be sad.
    I just tried both in desktop Firefox and both worked.

    @shadowwwind @sbb I think you confuse UI notifications with push notifications; and Firefox push server (*) supports the draft Telegram uses but it isn't compatible with UnifiedPush

    If you close your ProtonMail tab, you won't be notified when you receive new mails

    * Autopush is used with FCM on Android, or when the app is in running - probably in foreground only

    @S1m @sbb I see, thank you for the explanation.
    @shadowwwind @sbb This is a common error, I think from a bad word choice (push message or something like this would have been less confusing)
    @S1m @sbb is there a way I can see the webpush spec version of a webapp?
    @shadowwwind @sbb When you have access to the push request, you can look at the Content-Encoding header, it must be aes128gcm. Recent application should rely on the good specifications, they are around for nearly 10 years
    @S1m once f-droid roles out the update I would want to create a list of webapps that work with UP. Would you want that to be somewhere specific? Otherwise I just create a new repo on my codeberg
    @shadowwwind That's a good idea ! What do you think about a blog post, that can be updated ? It will be a good occasion to introduce the feature
    List of web applications with web push support

    As Fennec [recently add support to UnifiedPush](https://gitlab.com/relan/fennecbuild/-/merge_requests/78), and IronFox [plan to do it as well](https://gitlab.com/relan/fennecbuild/-/merge_requests/78#note_2590886673), it will be interesting for users to know some applications that support web pus...

    Codeberg.org
    @S1m awesome.
    I was thinking very basic, just markdown or HTML file and use issues and PR for submissions
    @S1m @sbb i tried telegram now with iron fox and sunup seems to even recieve the notifcations as it does count up in the app however no psuh notifications are displayed

    @shadowwwind @sbb Telegram doesn't follow webpush specifications and is incompatible with UnifiedPush

    (They use a 9yo deprecated draft of the specs)

    @shadowwwind @sbb It may be worth asking them to support the standard webpush, they support many different protocols
    @shadowwwind @S1m I appreciate your brief video, but it's still all really complicated. Many moving parts. Like I need to see a diagram being drawn one box at a time, explained, with labeling, etc. Then arrows are drawn showing how the data moves around.
    Maybe you can do a presentation on this at #Fosdem next year, or something?