How can a UI.WatchFace be forced to update once a second?

Former Member
Former Member
I've tried using a timer and calling requestUpdate() that that isn't allowed. "Permission Required" error results. So how do I manage to update once a second vs once a minute? The built-in watch faces have second hands.

I searched for this but didn't find an answer.
  • I've tried using a timer and calling requestUpdate() that that isn't allowed. "Permission Required" error results. So how do I manage to update once a second vs once a minute? The built-in watch faces have second hands.

    I searched for this but didn't find an answer.


    You can't force this to happen. The onUpdate() method is only called once per minute, when the minute changes. However, the onUpdate() method will be called once per second when the watch detects the motion of the user looking at the watch. When that happens, the onExitSleep() method is called which can be used to set a variable which can then be used to check if the seconds (or seconds hand) should be displayed within the onUpdate() method.

    The built-in watch faces have seconds because they don't use the Connect IQ SDK but instead work directly with the phone hardware. Furthermore, the built-in watch face functionality uses a low power CPU (or something to that effect I recall reading).

    Cheers,
    Douglas
  • Former Member
    Former Member over 8 years ago
    You can't force this to happen. The onUpdate() method is only called once per minute, when the minute changes. However, the onUpdate() method will be called once per second when the watch detects the motion of the user looking at the watch. When that happens, the onExitSleep() method is called which can be used to set a variable which can then be used to check if the seconds (or seconds hand) should be displayed within the onUpdate() method.

    The built-in watch faces have seconds because they don't use the Connect IQ SDK but instead work directly with the phone hardware. Furthermore, the built-in watch face functionality uses a low power CPU (or something to that effect I recall reading).

    Cheers,
    Douglas


    Thank you for the information.

    Update: I tried it and it works as explained.