Self-hosted web push Cloudflare Worker, works on iOS
35 points by saiday 3 hours ago | 11 comments
mrklol 38 minutes ago
My biggest problem with web push is that you won’t get notifications on iOS anymore, if you haven’t opened the app for a while. A tad bad for some apps.
replyskybrian 2 hours ago
It sounds like adding a Safari web app to your home screen is a slightly janky delivery mechanism?
replyCould you use Safari for delivering the notifications even if your default browser is something else?
noman-land 2 hours ago
Are there any solutions to encrypting notifications so that the service provider cannot see them?
replyzuzululu 2 hours ago
I use FCNS or APNS to send notifications to mobile apps, its a bit of hassle but it reaches all platforms.
replyIt'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 2 hours 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
replysaiday 2 hours ago
unfortunately, Declarative Web Push only supports WebKit, means Android cannot use it.
replyJimDabell 14 minutes ago
Mozilla have indicated they are positive on the feature:
replyhttps://mozilla.github.io/standards-positions/#declarative-w...
Chromium has a bug filed:
https://issues.chromium.org/issues/382298314
So hopefully this will move forward with other browsers.
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