How to generate a desktop notification using TideSDK

by THavamani 2013-08-05 17:26:31


TideSDK allows you to display notifications from your desktop apps using Growl on OS X, Snarl on Windows and libnotify on Linux..


Simple paste the following code it will show the notifications for 100 secs on desktop.


var notification = Ti.Notification.createNotification({
'title' : 'Notification',
'message' : 'Click here for updates!',
'timeout' : 100,
'icon' : 'app://images/Icon.png'
});

notification.show();


Here,
Ti.Notification.createNotification is used to created Notification object.
title is title of Notification.
message it will be displayed on desktop.
timeout is displaying time.
icon is a image that showed with message.
853
like
0
dislike
0
mail
flag

You must LOGIN to add comments