Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arunkumar-ms/pushnotification
PushNotification using service worker
https://github.com/arunkumar-ms/pushnotification
Last synced: about 1 month ago
JSON representation
PushNotification using service worker
- Host: GitHub
- URL: https://github.com/arunkumar-ms/pushnotification
- Owner: Arunkumar-MS
- Created: 2016-02-16T07:07:19.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-04-29T22:04:18.000Z (over 3 years ago)
- Last Synced: 2024-04-15T02:12:47.766Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.51 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PushNotification using service worker
HTML5 comes with lots of new features one of the most exiting feature among them is service worker
##what is service worker
A service worker is a script that is run by your browser in the background, separate from a web page, opening the door to features which don't need a web page or user interaction.
###This is a simple Application which shows how service worker is being used for Push Notification
Here i am using Google cloud messing for push Notification (you should have GCM account appkey to run this app you can create it its free for 90 days)
##Installation
- clone the repo
- npm install
- just update ur "gcm_sender_id": "XXXXXX" in manifest file and Your GCM API KEY in app.js gcm.Sender('Your GCM API KEY')
- node app.js
- browse the site in 4000 port### For more info on Service worker you can click [here](http://www.html5rocks.com/en/tutorials/service-worker/introduction/)