Example application using web Push API
MIT License
This is an example project presenting how to send Push Notifications to the browser. The notification is send using VAPID authentication method.
https://notifications-demo.ertrzyiks.me
Client side components:
Manages subscription
Receives push notification in background
Displays system notifications
Server side components:
For the most recent information refer to: https://caniuse.com/#feat=push-api,notifications,serviceworkers
yarn install
yarn web-push generate-vapid-keys
.env
file asVAPID_PRIVATE_KEY=BEkyy4.....ef7graNA
VAPID_PUBLIC_KEY=B5A.....dRE
VAPID_EMAIL
in the .env
fileyarn start