Drawing seconds hand when device is awake - works in Simulator, but not on device

Dear Community,

I've made a watch face where I draw the seconds hand only if the device is not in Sleep mode:

function onUpdate(dc) {
    ...
    if (isAwake) {
        ...
        dc.drawLine(x1, y1, x2, y2);
    }
}

function onExitSleep() {
    isAwake = true;
}

function onEnterSleep() {
    isAwake = false;
}

This works perfectly in Simulator, however on the actual device (vivoactive 3) the seconds hand is almost never drawn, I've seen it maybe once or twice for a couple of seconds after I switched from another screen. I couldn't find any dependancies, looks like it was random.

Top Replies

All Replies