Push demo
Play around with the push API!
- After clicking "schedule a notification", a browser-generated subscription endpoint will be sent to the demo server for storage. A notification will be stored for delivery after 10 seconds (but will take up to 5 minutes due to server polling).
- Endpoints and unsent notifications are automatically deleted after one hour. If you want to delete your endpoint and notifications now, click the "Delete my subscription" button. Alternatively, use the "clear site data" feature of your browser to invalidate the subscription.
- The code behind the site is deliberately simple vanilla JavaScript. Nothing transpiled to be seen; check it out or even debug it in your browser!
- The server code has a single third-party dependency (webpush-webcrypto) for encrypting notification contents