Skip to content

cmarrero01/nw-desktop-notifications

 
 

Repository files navigation

##NW Desktop Notifications

A simple system for creating desktop notifications for node-webkit applications.

##Usage

You need to change the line 34 with the name of your app:

'app://your_app/notifications.html'

This is the path for the html of your notification.

By including notifications.js and notifications.html in your project you can create desktop notifications for your application by calling:

window.LOCAL_NW.desktopNotifications.notify(iconUrl, title, content, clickHandlerCallback);

##Running the demo

(1) Clone this project

(2) cd into the project

(3) make the nw zip file

./make-nw

(4) Run the nw application

nw desktop-notify.nw

(This assumes you have nw aliased to node-webkit)

alias nw='~/Applications/node-webkit.app/Contents/MacOS/node-webkit'

##Update the Look-and-Feel

You can update the look and feel of the desktop notifications by updating the css embedded (via style tag) in notifications.html.

About

Simple cross platform desktop notifications for node-webkit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 86.7%
  • CSS 12.9%
  • Shell 0.4%