webpush.mp4
npm i
./node_modules/.bin/web-push generate-vapid-keys
// app.js Line 11,12
const vapidPublicKey = '[Public Key here]'
const vapidPrivateKey = '[Private Key here]'
// app.js Line 15 Your Email Address
webPush.setVapidDetails(
'mailto:hoge@example.com',
vapidPublicKey,
vapidPrivateKey
);
npm run start
Must be accessed via https to work on iOS.
You can also receive web pushes at http://localhost:3000 when opened from a PC browser.