Simple cross platform desktop notifications for node-webkit apps, inspired by Chrome Notifications.
Documentation on the wiki
-
Include the javascript
nw-desktop-notifications.js
in your application -
Include the HTML template
nw-desktop-notifications.html
in your application -
Create a notification using the API:
DEA.notifications.create(options, callback);
(1) Clone this project
(2) cd into the project /src
(3) Make the nw zip file by running the bash script
./make-nw.sh
(4) Run the nw application
node-webkit desktop-notify.nw
From the root of the project:
npm install
grunt build
Then run the executable/app from /webkitbuilds/release/NW Desktop Notifications Demo
-
Call the API to create a new notification.
-
nw-desktop-notifications.js
creates the HTML template using the user provided content -
nw-desktop-notifications.js
created the notification and appends the template to the created notification window. -
nw-desktop-notifications.html
is simply the container for the content. It handles closing itself and sending off interaction events back to the parent who initiated the notification.