Re:Push Notifications for Decentralized Services
by orblivion on Tuesday February 04, 2025 @02:34PM
(#42937435)
That's not really what I mean. The person I was replying to was saying that I can't get push notifications without Google's centralized stuff. ntfy/UnifiedPush appears to do just that, so I'm wondering what is missing here.
[ Parent
| on HN ]
Re:Push Notifications for Decentralized Services
by YarickR2 on Tuesday February 04, 2025 @03:48PM
(#42938377)
They are doing that by polling private servers, which is sometimes less efficient power-wise, and sometimes notifications are being delivered slower than in case of using Google-provided mechanism (FCM). We've been using ntfy for alerting, using our private server and running ntfy client in polling mode, and I do not see significantly increased battery usage by the ntfy client; Android 15.
Re:Push Notifications for Decentralized Services
by orblivion on Tuesday February 04, 2025 @05:56PM
(#42940346)
So ntfy Android app polls a ntfy service. (Which is more efficient than each app polling separately) What does Google's Android library do if not also poll? Does it run a server on the phone? Does it get special signals from cell towers that most apps don't have access to?
Re:Push Notifications for Decentralized Services
by freeone3000 on Tuesday February 04, 2025 @07:13PM
(#42941367)
It also polls, it just does it as part of the OS. Power saving by the OS can often interfere with apps like nfty that want a long-running background process, especially if they haven’t been opened in a while.
Re:Push Notifications for Decentralized Services
by orblivion on Tuesday February 04, 2025 @09:03PM
(#42942601)
Okay, thank you.
From what you're saying, it doesn't sound like the OS-based polling would be more power efficient, as someone in this chain suggested, just more reliable. Though, I think you can just turn off battery optimization for the ntfy app, in which case I'd expect them to be on par.
If that's right, it seems like ntfy with battery optimization turned off is effectively a "real" push notification system.