An example project on how to setup web push
JavaScript HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
client
README.md
package.json
send-push.js

README.md

An example of how to setup web push

The client/ directory contains the web application itself, which will load the service worker. In order to work properly with Chrome, the "gcm_sender_id" property in client/manifest.json must be updated with your own GCM id. In addition, the ajax call to post the PushSubscription must be updated with your own endpoint.

send-push.js is a simple example of how to send a push notification using the web-push package.