Skip to content

gerbenjacobs/html5-javascript-push-notifications

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 70.9%
  • HTML 29.1%