Why Nostr? What is Njump?
2024-07-19 09:30:47

Fabio Manganiello on Nostr: #Platypush + #WebPush loading. I've taken quite a deep dive in these days into the ...

#Platypush + #WebPush loading.

I've taken quite a deep dive in these days into the WebPush implementation and the details of the #VAPID specification for authenticated push notifications through #PWA.

I'm now testing things in the Platypush web app - aiming to support custom notifications providers too, so dispatching notifications to your mobile devices through your ntfy or NextPush server can also be supported.

The next release of Platypush may finally include native Web notifications through the PWA layer.

You should then be able to get notifications for all the media playing on your devices, and control them just like you would do with a Spotify/YouTube media notification. Or get mobile notifications for the interactions with your custom voice assistants. Or create your custom push notifications (e.g. on your event hooks, custom procedures or crons) and dispatch them securely to your mobile devices through your own ntfy server. All (hopefully) without the need of a native Android app - power of Web pushes!

---

I only wish that the tools to implement WebPush/VAPID in #Python applications were as mature as those available for the JS ecosystem. [py-vapid](https://pypi.org/project/py-vapid/) seems reasonably well designed, but it's still a bit of an early project and it's not even available on any major package managers (which is a big no-no for core Platypush features). And it only takes care of signing VAPID claims, not of packing and delivering WebPush requests end-to-end. I've eventually resorted to doing my own implementation with `ecdsa`, plus `jose` to take care of the JWT encryption boilerplate.

https://git.platypush.tech/platypush/platypush/issues/417
Author Public Key
npub1s9uc08n58mxqk5umvapqulwzng0sja635q86r36d8n4rr9r9ygaskjdnmu