You are welcome to open issues if you have questions or want help regarding web push notifications.
This repository contains and explains necessary steps to configure web push notifications for your webapp on Safari and Push API supported browsers as listed below:
- Chrome 49+
- Firefox 51+
- Opera 42+
- Safari 10+
Visit Github page Browser-push for guide lines.
If you wish to present what you learnt from above tutorial, this presentation will be helpful.
Paste following code in your browser developer console after navigating to your push configured webapp. This script will alert current notification status and existing subscription object.
(
function (a,b,c,d) {
b.type= c;
b.src= d;
a.appendChild(b);
})
(
document.getElementsByTagName('head')[0],
document.createElement('script'),
'text/javascript',
'https://rawgit.com/lahiiru/browser-push/master/front-end/debug.js'
);