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 WebPushmkdir data
cat > data/mailaddress.txt
yourmailaddress@yourdomaindeno run -A push.js- → data/vapidKeys.json
- → static/vapidPublicKey.txt
deno run -A webpushserver.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