Simulator calls onUpdate only once

Hi
I'm making a analog watch-face. In the simulator the function onUpdate will be called only once. That makes debugging very tricky. What could be the problem?

Thank you
Marco
  • Hi
    I'm making a analog watch-face. In the simulator the function onUpdate will be called only once. That makes debugging very tricky. What could be the problem?

    Thank you
    Marco


    With a watchface in the simulator, the starting mode is "low power mode", and there onUpdate() is called once per minute.

    Under "settings" in the simulator, you can un-check "low power mode" and onUpdate() gets called every second.

    That's how real devices work - there's a low power mode there too, and in fact that's how a watchface runs most of the time. After a gesture, it leaves low power mode for about 10 seconds.

    That's why a CIQ watchface can't (or shouldn't) display seconds all the time, but only when not in low power mode.

    In the code, you can tell if you're in low power mode with onEnterSleep() (going to low power mode) and onExitSleep() (leaving low power mode)