WebPush on Deno demo for Chrome, Safari, Firefox, iPhone (PWA) and Android
- iPhone PWA must have a meta tag:
<meta name="apple-mobile-web-app-capable" content="yes">
- setup Deno
git clone https://github.com/code4fukui/WebPush.git
cd WebPush
deno run -A init.js yourmailaddress@yourdomain
- → data/vapidKeys.json
- → static/vapidPublicKey.txt
deno run -A server.js
- open http://localhost:8000/
- press the "subscribe" button
- press the "push test" button
- copy the WebPush uuid
deno run -A push.js [uuid] test
- Deno
- web-push for Deno forked from web-push