Handling push notification subscription on the frontend using javascript.
- Fetch pushpackage from webservice
- Ask for permission
- Show deviceToken
Demo for deredactie.be (VRT)
Server side repo: https://github.com/damianleung/safari-push-clientside
Demo: http://vrt-cc.s3-website-eu-west-1.amazonaws.com/safaripush/
##Install
npm install
gulp serve
##Deploy
gulp build
- upload
/dist
folder to server