Widget sleep

Hello, how do i prevent my widget from sleeping? Is there a way to keep the screen always on? or keep it running in background?

Ps.: The way it is done in the app itself doesn’t work for the widget, i’ve tried…

To turn screen on, please use below,

tizen.power.request('SCREEN', 'SCREEN_NORMAL');

Check more here, Power States | Tizen Docs

Hey, i’ve tried that way, but it doesn’t work, i even tried using “CPU_AWAKE”…

If power api does not work, there is no other way as per my knowledge.

I am so happy to see that the issue have been solved, looking for the same issue, Keep sharing this kind of post.

Thanks again,

AARP Medicare