Live data from Hacker News

Push Notifications for Decentralized Services

unifiedpush.org

51–54 of 54 posts

Re: Push Notifications for Decentralized Services

#51

So would I be correct to say the distributor is a a 3rd party "satellite" app, that your app pulls from and the notification server pushes to? So end users would need to install this distributor app in addition to your own app?

That's already how it works, the 3rd app is usually the Google services. The setup described on the blog post allows user to use the Google services OR another service

Re: Push Notifications for Decentralized Services

#52
post #46

OT: anyone have experience with pushover.net, if so - how is it?

I have Pushover. I love it. I have a bash alias that I use to notify me when some command completes. I get a notification on my phone, and a tap on my wrist letting me know some hours long task is complete, and I can do the next step.

I have a Octoprint integration which lets me know when 3d prints have completed.

You can also modify the priority of a message, so I can send "critical" events if I need to, although I use that rarely.

Re: Push Notifications for Decentralized Services

#53

In this direct to FCM model, does the application running on the untrusted user's device need to embed any sensitive credentials? What prevents someone else from impersonating my app or other users on my app?

If you are interested, you can read the specifications: https://unifiedpush.org/developers/spec/android/ . The same question actually exists for firebase-messaging (Google) too (answer here: https://github.com/firebase/firebase-android-sdk/blob/cf5fe2... )

I'm not familiar with this stuff and don't have time to fully read the specs plus the required background reading. Here is my guess based on skimming the spec:

The application may embed the VAPID public key while the VAPID private key is kept secret by the app developer. That way only the app developer can send valid push notifications. This approach doesn't work when the app running on an untrusted device sends push notifications directly though?

I guess the trick is for the app to treat the push notification purely as a hint to go fetch the latest state from the app server. Do not trust anything in the push notification message. Then it doesn't matter whether the messages are spoofed.

You linked to some Android Intents code in the firebase-message code. I guess that is related to preventing Intent spoofing, but I'm not sure?

Re: Push Notifications for Decentralized Services

#54
post #38

Earlier quoted context omitted.

> 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 totall…

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 test@example.com 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…

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

Post reply on HN