gerbenjacobs / html5-javascript-push-notifications

Push JavaScript desktop notifications to browser from cURL

Home Page:https://www.scaledrone.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ScaleDrone's cURL JavaScript Desktop Notifications

This is a very simple example of how to use the HTML5 Desktop Notifications API to send notifications from your server. Beware that HTML5 Notifications are not supported by all browsers yet, you can get the latest list of supported browsers from here.

Create a new free channel at ScaleDrone.com or use the one from the example for testing.

Example

http://scaledrone.github.io/html5-javascript-push-notifications/

Running

Clone this repository and run it using your favorite http server.

You can push a notification from Terminal using cURL:

curl --include \
     --request POST \
     --data-binary 'Buy cheese and bread for breakfast.' \
     https://api2.scaledrone.com/dIVCxD01G4x1sDtC/notifications/publish

About

Push JavaScript desktop notifications to browser from cURL

https://www.scaledrone.com


Languages

Language:JavaScript 70.9%Language:HTML 29.1%