Seconds value are not displaying properly

Former Member
Former Member
Hi,

I have string in my watch face which will display seconds value.
When i test this in Simulator its working fine (value is getting updated). However when its in Watch sometime its paused and will update after sometime.

Can you please help me here?
  • Watch faces go into low power mode, and when this happens the onUpdate() function is no longer called every second (usually once a minute). It is up to you as the developer to handle transitions to (and from) low-power mode and behave accordingly.

    Typically, a watch face would be coded to stop displaying the seconds when the watch enters low-power mode.

    Travis
  • See "onEnterSleep()" and OnExitSleep() in your code, as that's how to find out if it's 1sec (show sec) or one min (no seconds) updates

    For example:
    function onExitSleep() {
    showSeconds=true;
    Ui.requestUpdate();
    }

    The Ui.requestUpdate() should be in both onEnter.. and onExit.., as that means the watchface will update as soon as there is a change in "sleep" mode....