Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/igrep/sample-notification-service-worker
Sample of Web Notification from a Service Worker
https://github.com/igrep/sample-notification-service-worker
Last synced: about 4 hours ago
JSON representation
Sample of Web Notification from a Service Worker
- Host: GitHub
- URL: https://github.com/igrep/sample-notification-service-worker
- Owner: igrep
- License: mit
- Created: 2015-08-30T11:22:29.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-24T14:31:09.000Z (about 9 years ago)
- Last Synced: 2023-03-11T14:52:36.809Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 164 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sample-notification-service-worker
Sample of Web Notification from a Service Worker.
# Important Notice
Currently, this app does **NOT** use Service Worker properly.
The spawned service worker gets eventually **killed** by the browser
because the worker runs in an infinite loop.# (Perhaps) easiest way to run this sample
```bash
$ git clone https://github.com/igrep/sample-notification-service-worker.git
$ cd sample-notification-service-worker
$ python3 -m http.server
# or if you are a Python 2 user
$ python -m SimpleHTTPServer
```Then open http://localhost:8000/ with a browser able to run
[Web Notification](http://www.w3.org/TR/2015/CR-notifications-20150519/) on a
[Service Worker](http://www.w3.org/TR/service-workers/).