Giter VIP home page Giter VIP logo

browser-push's Introduction

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 all the 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+

This repository is 100% customizable and can be used as Backend as a Service. If you want to subscribe users to push notifications directly on your domain using the your own backend without relying on third party push notification services, this will be a good start to build your web push notification system from scratch.

Tutorial

Visit Github page Browser-push for guide lines.

(This tutorial is for technical people. Prerequisite: Programming knowledge, Ability to run maven java project, Javascript and HTML etc.)

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

lahiiru (at) gmail.com

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.