02-01-2021 03:47
02-01-2021 03:47
I’m developing a react native fitness app and now I'm facing the issue with the desynchronization of steps data. I'm using that API:
https://api.fitbit.com/1.2/user/-/activities/steps/date/[date]/1d.json
and sometimes it happened that the Fitbit app shows 13000 steps and my app gets only 1000 steps which is a really big gap. I’m supposing that the reason is that the Fitbit app is closed. As a result, steps are not synchronized and the user in my app doesn’t have a possibility to get the steps. What would you say? Is there is any possibility that your API can synchronize steps backdating?
02-02-2021 15:05
02-02-2021 15:05
Hi @ToujoursSamedi,
Welcome to the forums!
It looks like you're querying an unsupported endpoint version "1.2". Our activity endpoints are currently on version 1. Could you try executing the endpoint again with the correct version? Let me know if you continue to experience discrepancies with the data.
Hope this helps!
02-05-2021 00:45
02-05-2021 00:45
Thanks for the answers, though seems like your reply didn’t fully resolve our problem - the desync is still preset.
So, to proceed, I’d like to verify the following thought: could you please specify, Fitbit API can get steps from a watch (e.g. fitness band) only when the Fitbit app is open, correct?
02-05-2021 05:15
02-05-2021 05:15
If the assumption above is right, then could you please share some plans for the nearest future whether you’re going to create a sync that would be working in the background mode (not only when the app is open)?
02-10-2021 07:41
02-10-2021 07:41
@JohnFitbit, Thanks for the answers, though seems like your reply didn’t fully resolve our problem - the desync is still preset.
So, to proceed, I’d like to verify the following thought: could you please specify, Fitbit API can get steps from a watch (e.g. fitness band) only when the Fitbit app is open, correct?
If the assumption above is right, then could you please share some plans for the nearest future whether you’re going to create a sync that would be working in the background mode (not only when the app is open)?
02-10-2021 09:34
02-10-2021 09:34
Once the Fitbit device syncs the data with the mobile application, then the data displayed in the mobile application should be available through the Web APIs. If you're using version 1 of the activity endpoint, then that's a good start. Next, I'd verify the date where 13K steps appears in the Fitbit application is the same as the date used in the activities endpoint. Another thing you can try is verify you're querying the same user. If you tell me the platform of the Fitbit app you're using, I can provide some instructions to find the user id.
Best,
Gordon