08-16-2021 17:20
08-16-2021 17:20
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?
10-10-2021 03:41
10-10-2021 03:41
Hey@fieldsr6
I was into this search and tired to thinker around to check many time have similar situation.
Thanks
David