activityInfo.isSleepMode

How do you put the vivo active into activityInfo.isSleepMode?

Not in the simulator....?
  • I don't think you can do it in the simulator, but on the real device it goes by your configured (in Garmin Connect) sleep time So if you configure the normal times are that you go to bed at 10pm and wake up at 6am the condition will change at 10pm and then at 6am.
  • you can do it in the simulator no problem...

    What I dont see is the icon appearing when NOT in the sim mode, having set the sleep times in garmin connect I do not see the icon appearing despite my watch face checking for activityInfo.isSleepMode.

    Garmin??

    Is this another bug.!?
  • For my watchface, I use an upper and lower case "s" to show the Sleep status, and it seems to change correctly based on the configured sleep times. I've never seen a way to do it in the simulator. How did you change it? You can check it, but I see no way to change it.

    Low power and sleep mode are two very different things. You can go in and out of low power mode in the simulator, but not sleep as far as what I've seen.
  • For my watchface, I use an upper and lower case "s" to show the Sleep status, and it seems to change correctly based on the configured sleep times. I've never seen a way to do it in the simulator. How did you change it? You can check it, but I see no way to change it


    Does your code work on the vivoactive or 920 or both?
  • I only have a vivoactive. Can you configure sleep times on a 920? Is there sleep tracking?

    update: Ok, I understand the confusion, as entering and exiting low power mode uses OnExitSleep() and onEnterSleep(), but "isSleepMode" is for sleep tracking on the device itself (it also supresses things like the "move" stuff while you are sleeping)

    For onEnterSleep() and onExitSleep() I actually use my own boolean to know that state that I called "inLowPowerMode"
  • So you are using activity info.issleepmode in you code and it's working on the vivo? What version are you running? Ta
  • 2.40.


    Forget power modes, I'm talking specifically about issleepmode. I check the state and display an icon if it's true BUT I do NOT see the icon when the time is within the sleep times setup in garmin connect.

    So o as I'm running 2.30 and 2.40 is no longer available perhaps I just have to wait till 2.60 is released in a few days to get this bug fixed....
  • Actually I maybe spoke too soon. I got up a bit before my "wake time" today, and looked at it specifically, and it may not be working!