Once a minute - watch face

The documentation says

"Watch Face Sleep

Watch faces spend the majority of the time in “Sleep Mode” in this mode, execution is restricted to updates once each minute"

How does this minute update manifest itself?

Is there some setting that needs to be set to get a once a minute update?

Presumably it does none of the enter/exit sleep functions nor onshow/onhide functions but just runs onUpdate?

Unfortunately it doesn't seem to run, what has to be done to make it run once a minute?

  • The watch must be set for Always on Display, and your watch face needs to follow the no more than 10% of the pixels and maybe the no pixel on for more than 3 minutes rules for AMOLD devices in low power.

  • From further testing the watch face even in the Sim does not do the update once a minute by default.

  • How can I have the watch face display always off, except when the user looks at it, and get an update once a minute?

  • In low power don't display anything.  In high power, only display the WF for "x" seconds after onExitSleep() is called.  Otherwise, just blank the screen in every second onUpdate calls.

  • In low power don't display anything.  In high power, only display the WF for "x" seconds after onExitSleep() is called.  Otherwise, just blank the screen in every second onUpdate calls.

    This is more or less the default but doesn't solve the problem.

    in low power mode it doesn't do the update once a minute, the WF is fully dormant.

    In high power mode the WF is on till the arm is lowered or the timeout occurs which is what is required and it shows seconds correctly.

    How can I have the watch face display always off, except when the user looks at it, and still get an update once a minute only as specified here?

    "Watch Face Sleep

    Watch faces spend the majority of the time in “Sleep Mode” in this mode, execution is restricted to updates once each minute"

     It currently isn't working like it is supposed to by default.

  • You can tell if you are in high power because onExitSleep() was called.  In onUpdate(). if you are in high power, display your watch face for "x" seconds (you know the time), and when you want the screen blank, do

    dc.setColors(Graphics.COLOR_BLACK,Graphics.COLOR_BLACK);

    dc.clear();

    return;

    My onEnterSleep() function sets a boolean "inLowPower=true;" and onExitSleep)_ "inLowPower=false;"  and then in onUpdate, I can do things differently based on if inLowPower is true or false.

  • Thank you for your time and hints - though I don't quite follow because it doesn't seem to address why the default specification isn't working. as it should or how to get the WF to exit sleep [but not hide] once a minute.

    If you use Always on, it won't enter or exit sleep so will use more battery.

    As regards blanking the screen which may be useful, will that work if Layouts.xml are used?

    My objective was to have a normal WF that does onHide and onEnterSleep but with onUpdate once a minute or even once an hour.

    To that end is there a way to specify time granularity of second, minute or hour, as required, to give the WF control without Always on or Background? In which case how do you get it to sleep again if it wakes from sleep.

    I tried with background permission for the whole app and it still does not get control after going to sleep, so not acting as described in the original quote of the specification. Could it be a bug? Or am I not using the right way to detect the once a minute update?

  • AOD on a real device, onEnterSleep and onExitSleep do get called..  AOD is what will have the display on all the time, but it will go between low and high power mode. 

    Which watch do you have?  Try one of mine, and you see how it works where in low power I only display the time.

    https://apps.garmin.com/en-US/apps/2c632834-3bb2-4dfa-b008-4f6d48dda0cb

  • JIm, you will be pleased I already had selected that one of yours, as one of the best !

    I can see it enter exit sleep. But the display is always on which would waste the battery unnecessarily for my WF and besides it requires the user select it, neither which I want.

    Am doing some more testing. I missed an error message in the sim [ that you were telling me about].

  • But it shows that onEnterSleep and onExitSleep do get called.

    On AMOLED watches, when it's in low power mode, all you see is the time,  I could not display the time and the screen would go blank in low power.