News for hackers. Stuff that matters.
Re:Push Notifications for Decentralized Services by colesantiago on Tuesday February 04, 2025 @03:31PM (#42938159)
I receive content from E-mail all the time and I am also notified about it and it doesn't drain my battery.
Re:Push Notifications for Decentralized Services by jacoblambda on Tuesday February 04, 2025 @03:45PM (#42938336)
But what is your email client using for notifications?

If it's using intermittent/timed fetch, that runs into the latency problem (taking longer to receive notifications). Push notifications exist to solve that problem.

If it's using IMAP's IDLE, MAPI's push, or JMAP's push, that's just another long-running HTTP or websocket connection.

And this protocol (along with the proprietary push notif aggregation services it is aiming to replace) exists to deduplicate those many long-running connections into a single connection out to some hardwired server that manages the many services/connections for it.

Re:Push Notifications for Decentralized Services by colesantiago on Tuesday February 04, 2025 @04:52PM (#42939399)
> But what is your email client using for notifications?

Local notifications?

I don't see the problem here with email, it seems to work well that it is great for my use case.

When you're offline with push notifications only the latest notification gets sent, not the previous notifications. This seems by design for notifications.

At least with E-mail I can see a history of emails that was sent to me.

I just see push notifications as a flawed concept that doesn't make sense for decentralised services.

Re:Push Notifications for Decentralized Services by jraph on Tuesday February 04, 2025 @05:27PM (#42939904)
I don't know what you mean by local notifications, but if you get a notification when a mail arrives, it's most probably because your mail client uses Google or Apple's push service if you use a regular mobile device, or if you installed and configured microG.

And here's your issue: your app that has nothing to do with Google relies on a centralised Google service, and depends on a proprietary library that speaks to some proprietary code running on your device.

Alternatively, your app isn't doing this, but then it risks being unreliable and stop notifying you if the system kills your app because it's been inactive for some time to save battery, or to reclaim memory, and/or it uses more battery than it could.

This post is not about a way to have more notifications: it is an answer to these issues.

Re:Push Notifications for Decentralized Services by colesantiago on Tuesday February 04, 2025 @06:16PM (#42940602)
> ... but if you get a notification when a mail arrives, it's most probably because your mail client uses Google or Apple's push service if you use a regular mobile device, or if you installed and configured microG.

Except it doesn't?

The Mail app on my iPhone doesn't use push notifications, fetch works well and I still get local notifications. No external push service at all.

> Alternatively, your app isn't doing this, but then it risks being unreliable and stop notifying you if the system kills your app because it's been inactive for some time to save battery, or to reclaim memory, and/or it uses more battery than it could.

You're saying a bunch of "issues" that never actually happened with me or anyone really, there is actually no issues here.

E-Mail is fine.

Re:Push Notifications for Decentralized Services by jraph on Tuesday February 04, 2025 @07:49PM (#42941790)
> Except it doesn't?

See how I introduced your case later with "Alternatively"? You saw it since you quoted me.

Fine, your email app works well in fetch mode. It took you three roundtrips to mention your actual setup despite having been asked about it quite early and despite it being a critical element in this discussion. Omitting to mention that doing this choice, your notifications are delayed.

Fetch mode is totally a valid choice, email doesn't need to be real time for every one. It will actually save battery life from what I can read: you don't need constant polling. Of course, push notifications are for real time stuff. What costs battery life or requires a push notification service on current widespread mobile devices is timely notifications. I can't help you if you fail to see how this can be useful, even if you don't personally need this or are against the idea.

Your email case is simply irrelevant to the discussion, but you made sure we couldn't notice until now.

You don't seem actually curious or interested in the topic at hand, preferring to show contempt and spite to people discussing with you here. Bu the way, frankly, loose the scare quotes, they are ridiculous.

I'm not sure what you are trying to achieve. If you hope to convince people that they should avoid them too, let me suggest that it's a terrible way of doing this. You seem to be here just to brag about how you don't need push notifications. Or to make fun of us. I flagged you, and I'll stop here.

Re:Push Notifications for Decentralized Services by colesantiago on Wednesday February 05, 2025 @06:59AM (#42947297)
I mean, my point with E-mail is to say it already IS a solved problem.

Many services and apps use E-Mail so there is no need to setup additional infrastructure unlike push notifications. That is the complexity.

Send an email notifying me to [email protected] is more intuitive than setting up a push service.

Push notifications suffer from deliverability more frequently (regularly expiring tokens) than E-mail so much so, that when your device is offline and it gets back online, you only get the last notification. This is by design.

Having apps use fetch doesn't mean it's delayed, you can set it to a shorter duration but 5 minutes is the default.

But, it is over engineered as this is complexity that we do not need and would have a higher maintenance and setup than just using E-mail.

Re:Push Notifications for Decentralized Services by jraph on Wednesday February 05, 2025 @03:51PM (#42954933)
But for stuff like chat, 5 minutes is quite slow, push notifications are for this use case.

"hey, I just arrived at the restaurant!" You may want to know this now

Re:Push Notifications for Decentralized Services by crtasm on Tuesday February 04, 2025 @07:46PM (#42941751)
How frequently is the app checking for new emails?
Re:Push Notifications for Decentralized Services by jacoblambda on Tuesday February 04, 2025 @06:01PM (#42940413)
I think you are thinking about something different. So "Push Notifications" can refer to two different things.

The user oriented term refers to on-device notifications that pop up at the top of the screen. Those are technically just normal notifications but people like to call them push notifications for various reasons.

Push notifications in the technical sense however refer to a system for remote services to notify a client that something happened rather than the client manually polling the server for new updates. It's the difference between the client asking "do you have anything new" and the server telling the client "hey pay attention you have something new". This is what we are talking about when we say push notifications.

Email clients that automatically get new emails in the background all either do so using fetch polling or push notifications. The traditional method is fetch polling at a regular interval but nowadays most email clients support push notifications. We are discussing a tool that these clients can use behind the scenes to provide these push notifications for the email client in a battery and data efficient manner.

Re:Push Notifications for Decentralized Services by ianburrell on Tuesday February 04, 2025 @05:43PM (#42940144)
Push notifications work with any app. It is nicer to group notifications by app, and have app specific behavior. Emails add an extra step to get to the content in the app.

Gmail does push notifications. Otherwise, have to wait for the client to poll the server.

Re:Push Notifications for Decentralized Services by colesantiago on Tuesday February 04, 2025 @05:55PM (#42940333)
> Push notifications work with any app...

What if I don't want to use an app?

Email works with every email client that has been ever made.

It is already universal.