Self-hosted web push Cloudflare Worker, works on iOS

(kukuroo.cc)

28 points | by saiday 2 hours ago

5 comments

  • saiday 2 hours ago
    Sending push notifications to iOS without relying on a native app has already become a mature option. Last year Apple extended the standard Web Push with Declarative Web Push, which finally makes the whole thing make sense. (It's handled natively by WebKit rather than driven by JavaScript, which improves push reliability and privacy, much like the native push notification model.)

    Kukuroo uses Cloudflare Workers so that end devices can subscribe to push notifications and relay push requests to the Worker, which signs and delivers them. I personally found it genuinely useful and full of potential, so I open sourced it: kukuroo.cc

    Requirements:

    Safari on iOS and macOS only (though seriously, who receives push notifications on macOS?) The web page that receives the notifications has to be added to the Home Screen A Cloudflare account. Push notifications and lightweight serverless functions are a perfect match

    • spiderfarmer 1 hour ago
      The might have fixed some issues but the fact that it is only available for homescreen websites and that the link to add them there is buried in the UI is very stupid imho.
      • saiday 44 minutes ago
        agree ++
  • skybrian 50 minutes ago
    It sounds like adding a Safari web app to your home screen is a slightly janky delivery mechanism?

    Could you use Safari for delivering the notifications even if your default browser is something else?

  • noman-land 51 minutes ago
    Are there any solutions to encrypting notifications so that the service provider cannot see them?
    • saiday 42 minutes ago
      Declarative Web Push messages are end-to-end encrypted natively, even Apple cannot see the content.
  • zuzululu 20 minutes ago
    I use FCNS or APNS to send notifications to mobile apps, its a bit of hassle but it reaches all platforms.

    It'd be great if this solution reaches all browsers on all OS but I can see the potential for spamming , might be why Apple and Android require photo id now.

  • oulipo 1 hour ago
    Seems nice! I use FCM (Firebase) which does this for Android and iOS, which does require some setup, but it's not too bad
    • saiday 41 minutes ago
      unfortunately, Declarative Web Push only supports WebKit, means Android cannot use it.