08-22-2024 22:12
08-22-2024 22:12
Hello!
I am a Flutter app developer.
I am currently collecting Fitbit biometric data (steps, heart rate, sleep) for my app. However, I've noticed that sleep data is not immediately available; it can only be retrieved after manually syncing through the Fitbit app. Is there an API available to check whether Fitbit data has been synchronized?
(In my experience, when I check the Fitbit app in the morning, it often shows "No sleep data," and only after syncing or waiting for some time does the sleep data appear. Is there a reason for this, and is there a solution?)
Thank you!
Answered! Go to the Best Answer.
08-22-2024 22:25
08-22-2024 22:25
I think sleep stats are computed on the server based on raw(ish) data synced from the watch.
You can ascertain the most recent lastSyncTime from here.
08-22-2024 22:25
08-22-2024 22:25
I think sleep stats are computed on the server based on raw(ish) data synced from the watch.
You can ascertain the most recent lastSyncTime from here.
08-28-2024 17:19
08-28-2024 17:19
Hi @whwndud
If the Fitbit application is running in the background on your mobile device, then it should automatically sync every 15 minutes. When you wake up, the device will need to determine that you are actually awake and not moving in your sleep. So, this might take a few minutes for the device to detect. Once the device detects you are awake, it will attempt to sync the sleep data during the next automatic sync period. Also, there is a lot of data that is collected while you are sleeping, and it might take multiple syncs before all the data is sent to the Fitbit servers for processing.