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

Sleep on Fitbit Simulator?

I'm new to developing for fitbit (and developing in general). 

I have Fitbit Simulator, and have it correctly connected to Fitbit Studio, have settings set to allow sleep monitoring . 

Does the simulator support sleep info at all? Getting no info on sleep state in console when running code below: 

import sleep from "sleep";

if (sleep) {
  sleep.addEventListener("change", () => {
     console.log(`User sleep state is: ${sleep.state}`);
   });
} else {
   console.warn("Sleep API not supported on this device, or no permission")
}

 
Any thoughts on this?

Best Answer
0 Votes
1 REPLY 1

Hey@fieldsr6 

 

I was into this search and tired to thinker around to check many time have similar situation.

 

Thanks

David

 dhl tracking

 

Best Answer
0 Votes