SetLights command for CreateNotification() doesn't work

27 views
Skip to first unread message

DogPlanner GSS

unread,
Dec 10, 2025, 4:49:33 AM (4 days ago) Dec 10
to DroidScript
Hello dear developers,

My question concern Notification led blinking, the code is following:

myObject = null;

function OnStart() {

   var notify = app.CreateNotification();
   var _dateObj = new Date();
   notify.SetMessage("", "Dory birthday", _dateObj.toLocaleTimeString());
   notify.SetLights("#FF0000", 1000, 1000);
   notify.Notify("testApp");

   myobject = notify;
}

The notification is displayed but it isn't led blinking.

Could you tell me pls are we doing something wrong?
Or it is the DroidScript problem.

Thank you very much in advance. Have a nice day. 

Alan Hendry

unread,
Dec 10, 2025, 12:33:25 PM (4 days ago) Dec 10
to DroidScript
HI,
noted that 
/Called when user presses notify button.
//Note: Lights only show when device screen is turned off.
function btn1_OnTouch() 
{
    notify1.SetMessage( "You have a notification!", "My Title", "My Details" );
    notify1.SetSmallImage( "/Sys/Img/Notify.png" );
    notify1.SetLights( "#00ffff", 500, 500 );
notify1.Notify();  
}
Regards, Alan H

DogPlanner GSS

unread,
Dec 11, 2025, 5:09:49 AM (3 days ago) Dec 11
to DroidScript
Dear Alan,

thank you very much! It is very useful for us, now we will know that 'ights only show when device screen is turned off.

Have a nice day.

Best regards
Dmitry

среда, 10 декабря 2025 г. в 20:33:25 UTC+3, hendr...@gmail.com:
Reply all
Reply to author
Forward
0 new messages