How to create desktop notifications in TideSDK

by THavamani 2013-04-29 17:00:46

TideSDK allows you to display notifications from your desktop apps using Growl on OS X, Snarl on Windows and libnotify on Linux. In the event of a notification provider being absent, notifications are shown using HTML/CSS.

var doSomething = function() {
//paste callback code
}

//Code to create and displaying notification.
var notifi= Ti.Notification.createNotification({
'title' : 'TideSDk Notification',
'message' : 'Click here for updates!',
'timeout' : 10,
'callback' : doSomething,
'icon' : 'app://images/Icon.png'
});

notifi.show();
816
like
0
dislike
0
mail
flag

You must LOGIN to add comments