Posts

Showing posts from June, 2026

HTML Refresher and Detailed Study - Part 11

Last updated on 1 June 2026 Post series: Part 1 ,     Prev Part (10) ,     Post Series TOC Contents (sections and/or jump links) Revisiting Web Push and understanding its usage for real life scenarios Introduction What exactly does webpush.setVapidDetails() do? VAPID Key Generation and usage in code How are VAPID keys used to set up a Push service facility specific to client page Creation of Push subscription endpoint needs only public key and not private key - seems counterintuitive at first Public key is like a snap-shut padlock; Client to client Push notifications may be possible but very risky due to lack of security for Private key Server plays vital roles of holding Public and Private VAPID keys, storing subscription endpoints and sending Push notifications Single VAPID public/private key pair is typically shared across all client-initiated Push service subscription endpoints for an app Example Weather app with 1000 Push ...