Simple cross platform desktop notifications for node-webkit apps, inspired by Chrome Notifications.
API Documentation on the wiki
-
Include the javascript
nodeifications.js
in your application -
Include the HTML template
nodeifications.html
in your application -
Create a notification using the API:
DEA.notifications.create(options, callback);
-
Clone this project
git clone git@github.com:pbojinov/nodeifications.git
-
Run
npm install
-
Make the nw zip file by running the default gulp task
gulp
-
cd
into the project/src
-
Run the nw application
nodewebkit nodeifications.nw
From the root of the project:
npm install
gulp build
Then run the executable/app from inside /webkitbuilds
-
Call the API to create a new notification.
-
nodeifications.js
creates the HTML template using the user provided content -
nodeifications.js
created the notification and appends the template to the created notification window. -
nodeifications.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.
- node-webkit version
0.9.2
or later is required for this example (becauseWindow.setShowInTaskbar
is used).