Skip to content

Complete workout and guide lines to add web push notifications support for your webapp

License

Notifications You must be signed in to change notification settings

chuyennm/browser-push

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Push notifications for your webapp!

Support

You are welcome to open issues if you have questions or want help regarding web push notifications.

Introduction

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+

Tutorial

Visit Github page Browser-push for guide lines.

Presentation

If you wish to present what you learnt from above tutorial, this presentation will be helpful.

Debug your app

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'
 );

[email protected]

About

Complete workout and guide lines to add web push notifications support for your webapp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 39.2%
  • Java 31.6%
  • HTML 16.4%
  • PHP 12.8%