Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Clockface battery drain when Fitbit phone app open

ANSWERED

Hi guys,

 

I am building a clock face and am finding that when the Fitbit app is open on my phone, the Fitbit device drains extremely quickly. When the phone app is closed, the device drains at a more stable 1% per hour.

 

The basis of my code is from a previous post that uses setTimout to call a function when the screen is on.

 

Any thoughts on how to limit the Fitbit watch power drain when the phone app is open?

 

 

import { display } from "display";

let timeoutID;
display.addEventListener("change", function() { if (display.on) { wake(); } else { sleep(); } }) function wake() { // do something when the screen wakes

// also, cancel the timeout if it's still scheduled
clearTimeout(timeoutID); } function sleep() {
// do something when the screen sleeps

// here you can calculate when you need to wake up

let delayMilliseconds = 30 * 60 * 1000; // 30 minutes
timeoutID = setTimeout(doSomething, delayMilliseconds); }

function doSomething() {
// do this even when the screen is still off
}

 

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

If you have the developer bridge enabled, then you're using WiFi and that will drain the battery.

View best answer in original post

Best Answer
0 Votes
2 REPLIES 2

If you have the developer bridge enabled, then you're using WiFi and that will drain the battery.

Best Answer
0 Votes

Thanks Jon. Yes it looks like the developer bridge was the problem.

Best Answer
0 Votes