Live data from Hacker News

Ntfy – open-source Push to Mobile

ntfy.sh

11–20 of 53 posts

Re: Ntfy – open-source Push to Mobile

#11

I wonder whats the difference between permisions do giant apps like whatsapp, instagram have for notification service. cause they seem like perfectly integrated themselves into this, while ntfy has to pose itself as battery consuming application I'm planning to using ntfy for notifications like bitwarden vault backups, if apps are updated.

I've been using ntfy for ages. Doesn't chew my battery too much. Chrome, mail and mattermost are my top. Ntfy gets less than 30 notifications per day.

Re: Ntfy – open-source Push to Mobile

#12
post #3

Been running ntfy in my homelab for several years. Always works great!

Incredibly useful to give any app the ability to send you a notification with a single line of code or shell.

Only one minor caveat for self-hosted iOS users - content of the messages come from your server, but the trigger still comes from ntfy.sh server.

Re: Ntfy – open-source Push to Mobile

#13
post #3

Been running ntfy in my homelab for several years. Always works great!

Incredibly useful to give any app the ability to send you a notification with a single line of code or shell. Only one minor caveat for self-hosted iOS users - content of the messages come from your server, but the trigger still comes from ntfy.sh server.

You can "install" the PWA on iOS by adding it to your home screen, then your ntfy instance can use APNs directly (via Web Push)!

Re: Ntfy – open-source Push to Mobile

#15
post #14

Not Open Source but I’ve been using https://pushover.net/ for this use case since forever. The website still looks the same as on the day I signed up for it probably more than 10 years ago. Never had an issue and using that in all my scripts or cron jobs.

I had all sorts of nfty notification to ios issues despite lots of trial and error and a bunch of AI tokens. I also moved to pushover.

Re: Ntfy – open-source Push to Mobile

#16
Love this service!

I use it to send commands and URLs between my devices.

On Linux you can do `ntfy sub` and on android you can have Tasker react when a ntfy notification arrives based on its title and contents. So on just about all my devices I have a background script running that is subscribed to a "DeviceCommands" channel that checks if the Title of new messages contains the device hostname or not. If it does it triggers a script based on the contents of the body.

E.g.:

Title: Pixel8

Message: https://kagi.com

Will automatically send the URL to my browser.

Or:

Title: LivingRoomPC

Message: Shutdown

Will shut down the computer.

Re: Ntfy – open-source Push to Mobile

#17
post #10

I've been using Gotify [1] for a very long time and have been quite happy with it. Basically no impact on battery life. For devs - there are mature libraries like shoutrr [2] and apprise [3] that let you support multiple notification systems with no extra work. 1. https://gotify.net/ 2. https://shoutrrr.nickfedor.com/v0.17.0/ 3. https://github.com/caronc/apprise

Right, but if you use ntfy.sh you can get proper mobile push notifications (instead of keeping the app running and using long polling or websockets).

If you use the public version of ntfy.sh then you don't need to do anything to set this up. If you self-host, you need your own Firebase Cloud Messaging (FCM) account and (for iOS) your own Apple Developer account so you can use APN.

Re: Ntfy – open-source Push to Mobile

#18
post #14

Not Open Source but I’ve been using https://pushover.net/ for this use case since forever. The website still looks the same as on the day I signed up for it probably more than 10 years ago. Never had an issue and using that in all my scripts or cron jobs.

What's the advantage over, say, having a Telegram bot push you messages instead of notifications?

Re: Ntfy – open-source Push to Mobile

#19

Love this service! I use it to send commands and URLs between my devices. On Linux you can do `ntfy sub` and on android you can have Tasker react when a ntfy notification arrives based on its title and contents. So on just about all my devices I have a background script running that is subscribed to a "DeviceCommands" channel that checks if the Title of new messages contains the device hostname or not. If it does it…

For people in the iOS / Apple ecosystem, check Hyperduck which is a neat app to do this

Re: Ntfy – open-source Push to Mobile

#20
post #10

I've been using Gotify [1] for a very long time and have been quite happy with it. Basically no impact on battery life. For devs - there are mature libraries like shoutrr [2] and apprise [3] that let you support multiple notification systems with no extra work. 1. https://gotify.net/ 2. https://shoutrrr.nickfedor.com/v0.17.0/ 3. https://github.com/caronc/apprise

Right, but if you use ntfy.sh you can get proper mobile push notifications (instead of keeping the app running and using long polling or websockets). If you use the public version of ntfy.sh then you don't need to do anything to set this up. If you self-host, you need your own Firebase Cloud Messaging (FCM) account and (for iOS) your own Apple Developer account so you can use APN.

Personally I use FCM (Firebase push notifications) with a Capacitor plugin for push notifications, it works decently
Post reply on HN