0

I am using tidesk to make desktop notifications for my webapp. I am able to use the notification API and am able to generate notifications but is there any way of styling those notifications. I would like to change the notifications css to style it a bit according to my preference. Is there any way of doing that.

thanks!

I dont really have much code, its all pretty basic stuff, but still, here it is.

var window1 = Ti.UI.currentWindow;
window1.hide();
window1.setTitle('Application Name');


function showNotify(title, message) {
  var notification = Ti.Notification.createNotification({
    'title': title || 'No Title',
    'message': message || 'No Message',
    'timeout': 15
  });
  notification.setIcon("logo_white_33.png");
  notification.show();
}

function addTrayIcon(){
 tray = Ti.UI.addTray("recycle_bin.png", function(e){
     if (!window1.isVisible())
     {
       window1.show();
     }
 });
}
showNotify("New Reminder", "Reminder for <user> at <time>");
addTrayIcon();
theRev
  • 109
  • 1
  • 2
  • 12
  • Please add some code. – Alex Jan 16 '14 at 05:25
  • After looking at the APIs and searching the net for some good amount of time, I have concluded that it is not possible to style the notifications. So I have decided to proceed with creating my own notifications using the child window concept....yep, it is going to be a lengthier task. – theRev Jan 23 '14 at 04:14

0 Answers0