Web Push demo
A browser front-end for the Web Push backend (a Rust Cloudflare Worker). Point it at your deployed Worker, subscribe, and send a notification to see the full round-trip work.
1 Connect to your Worker
The base URL of your deployed Worker, e.g.
https://web-push-worker.your-name.workers.dev.
It's saved in this browser and can be shared via ?api=.
VAPID public key:
2 Enable notifications
The browser must grant permission before it can receive pushes.
3 Subscribe / unsubscribe
Subscribing registers the service worker, asks the push service for an
endpoint, and POSTs it to your Worker's /subscribe.
Subscription id:
Endpoint:
4 Send a test notification
Posts to /notify. The Worker encrypts the payload and hands
it to the push service, which wakes the service worker.
Activity log
Browser support
- Secure context (HTTPS) ?
- Service workers ?
- Push API ?
- Notifications ?
Web Push needs HTTPS (or localhost). On iOS, add this page to
the Home Screen first, then open it from there.