this post was submitted on 27 Jun 2023
67 points (95.9% liked)

Selfhosted

40252 readers
1018 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Hello folks,

Request for testing: The next ntfy server release will contain a progressive web app (PWA) with Web Push support, which means you'll be able to install the ntfy web app on your desktop or phone similar to a native app (even on iOS! πŸ₯³), and get basic push notification support (without any battery drain).

Installing the PWA gives ntfy web its own launcher (e.g. shortcut on Windows, app on macOS, launcher shortcut on Linux, home screen icon on iOS, and launcher icon on Android), a standalone window, push notifications, and an app badge with the unread notification count.

Testing instructions: The (hopefully) production ready version of the PWA is currently deployed on https://staging.ntfy.sh/app -- Install instructions with screenshots can be found in the docs (https://docs.ntfy.sh/subscribe/pwa/).

Please report bugs or issues on Discord, Matrix, or Lemmy ([email protected]). PLEASE HELP TEST

Huuuuge thanks goes to @nimbleghost for developing this entire feature top to bottom. If you throw donations (GitHub Sponsors or Liberapay) my way, I'll share them with him. He certainly deserves it for all this great work. πŸ‘

-- If you don't know what ntfy is: ntfy (pronounce: notify) is a simple HTTP-based pub-sub notification service. You can use it to send push notifications to your phone via HTTP PUT/POST. You can selfhost it or use the hosted version on ntfy.sh

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 1 year ago (1 children)

This is cool! Do PWA push notifications bypass the need for the centralised Apple/Android services?

[–] [email protected] 1 points 1 year ago (2 children)

No. Web Push is a spec implemented by all browsers that allows servers to push notifications to the browser via their own push service. Each browser ships with its own hardcoded web push endpoints. Chrome uses FCM under the hood, Firefox uses some Mozilla servers, and so on.

However, all messages are encrypted with a key that the push servers do not know. Only your server and your browser do.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

Thanks for the reply. I was hoping this might be a way to allow servers without an internet connection to still deliver push notifications to clients.

[–] [email protected] 2 points 1 year ago (1 children)

Sadly no. I must admit I was incredibly disappointed by the webpush spec. ntfy could easily be a push service, but the spec does not allow that. You cannot override your own server.

[–] [email protected] 2 points 1 year ago

dammit. thanks for the info!

[–] [email protected] 2 points 1 year ago (2 children)

Big PWA fan here but I wasn't aware that safari on ios is now supporting push notification (not an apple user). Do you have any link about it?