this post was submitted on 01 Jul 2023
17 points (94.7% liked)

Selfhosted

40040 readers
658 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
 

cross-posted from: https://discuss.ntfy.sh/post/30818

Hello friends πŸ‘‹, it's that time again. A new ntfy release has landed. This one is pretty cool!

For those who don't know, ntfy is a a tool that lets you send push notifications to your phone from any script or server using a simple HTTP PUT/POST requests. It's 100% open source and self-hostable, and has an Android app and a web app. You can use ntfy like this (more in the docs). This will send a notification to your phone:

curl -d "Backup on $(hostname) complete" ntfy.sh/mytopic

I host free and open version on ntfy.sh, but you can host your own of course.

πŸ”₯ What's new? With this release, the ntfy web app now contains 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! πŸ₯³). Installing the PWA gives ntfy web its own launcher, a standalone window, push notifications, and an app badge with the unread notification count. Note that this needs to be configured for selfhosted servers!

On top of that, this release also brings dark mode πŸ§›πŸŒ™ to the web app.

πŸ™ A huge thanks for this release goes to @nimbleghost, for basically implementing the Web Push / PWA and dark mode feature by himself. I'm really grateful for your contributions.

❀️ If you like ntfy, please consider sponsoring us via GitHub Sponsors or Liberapay, or buying a paid plan via the web app. Contrary to "popular" belief, I am not swimming in money due to the paid plans. 😬

Detailed release notes: https://docs.ntfy.sh/releases/

Other links:

Public topics:

top 6 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 1 year ago (1 children)

How would the PWA be any better than the actual native iOS app?

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

The biggest reason is that PWA allows for web push notifications.
iOS is pretty strict when it comes to background apps keeping open connections, that's one of the reasons why there is no gotify app on iOS. They list the possible workaround with apple's APN service, but that would kind of defeat the purpose of selfhosting,

I'm afraid the biggest obstacle would be Apple's strict restrictions on background services. We cannot keep a persistent WebSocket connection in the background without abusing some APIs, which will absolutely disqualify the app from going onto the App Store and drain the battery significantly. Notifications could only be delivered through APN, which requires a developer account and a central server to manage notifications and send them to Apple before reaching the user, but this is not what gotify is designed for.

https://github.com/gotify/server/issues/87#issuecomment-457453135

//edit: If you check the ntfy docs, you'll see that instant delivery is not supported on iOS. So if you have uses that are time-sensitive, PWA with web push definitely has the advantage.

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

Is there plans to add integrations to other self host apps? I could see it being useful for integrations with Lemmy and arr software specifically. Doing this would increase popularity with it since it increases use cases.

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

It's already integrated into a bunch of things, especially the *arrs, but if you have suggestions, please let me or the maintainers of the other software know.

Here's a list: https://docs.ntfy.sh/integrations/

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

Hey I looked into this some more, and.had a question. If I locked the web part behind my own auth provider and keep API part open but not exposed externally, would that be the way to keep publishing and subscribing private? I'd plan on using PWA, so breaking app versions wouldn't be a concern.

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

Just try it out. I make no guarantees for odd setups like that though. :-)