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);
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:
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);
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio