语言

Menu
Sites
Language
How to refresh UI when a watch screen is turned off?

I'm struggling to refresh a watch face when a watch screen is turned off.
I use:

<tizen:privilege name="http://tizen.org/privilege/power"/>
<tizen:setting background-support="disable" encryption="enable" hwkey-event="disable"/>
tizen.power.request('CPU', 'CPU_AWAKE');

For instance, I have an empty DOM element and an interval which increments number and sets it into the DOM element every second. A watch screen after being turned off during 10 seconds will display an empty DOM element first and only then 10. In another 10 seconds of a turned off watch screen you will see 10 first and then 20.
Is there a way to redraw UI while a watch screen is turned off?

PS Without background support the variable won't even increment.

var number = 0;
setInterval(function () {
  $("#div_block").text(++number);
}, 1000);