The Push API allows a server to send messages to a web app at any time — even when the app isn't open! It uses a push service (provided by the browser vendor) as an intermediary between your server and the user's browser.
Push messaging requires a server component to send actual push messages.
This demo shows the client-side subscription flow and simulates push events using
the Service Worker's push event from DevTools.
You can trigger push events manually from Application → Service Workers → Push!
Since we don't have a push server, you can simulate push events from DevTools:
Hello from Push!)