11-18-2015 08:47
11-18-2015 08:47
Hi Guys,
I'm not a developer but my team is having an issue figuring this out. When we use our app to see steps it doesn't show anything unless we open the Fitbit app first. Fitbit app then syncs data. Then when we open our app we can see steps.
Is this because of the device I'm using (Fitbit One)? It seems silly to have users open the fitbit app first to trigger a sync and then open our app?
Thanks in advance for your help?
Dan
Answered! Go to the Best Answer.
11-18-2015 10:25
11-18-2015 10:25
Have you got background sync turned on on your iOS 6 ?
Do you also allow background app refresh in the settings > general.
11-18-2015 11:36
11-18-2015 11:36
Bronxy - genius! I think that's it. iOS 9's low power mode turns off all apps background refresh. I often spend days in low power mode because I unplug my phone from the charger before it is fully recharged.
Thank you for the quick help!
11-18-2015 08:56
11-18-2015 08:56
11-18-2015 10:01 - edited 11-18-2015 10:03
11-18-2015 10:01 - edited 11-18-2015 10:03
You can enable periodic background sync on both Android and iOS mobile devices.
Here are the help articles:
http://help.fitbit.com/articles/en_US/Help_article/How-do-Fitbit-trackers-sync-with-Android-devices
http://help.fitbit.com/articles/en_US/Help_article/How-do-Fitbit-trackers-sync-with-iOS-devices
(Specifically the section titled "How often will my tracker sync?")
If you have the desktop client installed and the USB dongle plugged into your computer, it will also sync nearby Fitbit trackers.
11-18-2015 10:14 - edited 11-18-2015 10:14
11-18-2015 10:14 - edited 11-18-2015 10:14
Dan - it says that the device syncs every 15 minutes if the app is on all-day mode. My app is in the all-day mode and the only time it syncs is when I physcially open the app.
Our app, not the Fitbit App, can't pull data unless the data syncs - I'm finding some of our customers are complaining about Our app not syncing but i think it's related to your app not syncing every 15 minutes with the device.
Is there a way for us to trigger a sync when they use our app rather than just pulling the data?
11-18-2015 10:17 - edited 11-18-2015 10:17
11-18-2015 10:17 - edited 11-18-2015 10:17
Thats odd, it should work. What kind of a mobile device do you have?
There isn't a way for your app to trigger a sync.
11-18-2015 10:20
11-18-2015 10:20
Thanks Bronxy,
For some reason the Fitbit app (it is up to date) doesn't seem to sync in the background (I do have all-day mode turned on and the app is open in the background).
We've had some customers complain that the app works and then stops syncing steps. This was the case for me - Since I wasn't using the Fitbit app (trying to use our own app) it would show 0 steps when my Fitbit device showed many. Then when using the Fitbit app it would sync and the data would show in our app the next time we opened our app. So, right now, no updated data in our app or in Fitbit account unless I open the Fitbit App (trigger manual sync)
I'll try to get details from my developer on the api calls.
11-18-2015 10:20
11-18-2015 10:20
HI Dan - iPhone 6s - I've had my developer test on other phones as well.
11-18-2015 10:25
11-18-2015 10:25
Have you got background sync turned on on your iOS 6 ?
Do you also allow background app refresh in the settings > general.
11-18-2015 11:36
11-18-2015 11:36
Bronxy - genius! I think that's it. iOS 9's low power mode turns off all apps background refresh. I often spend days in low power mode because I unplug my phone from the charger before it is fully recharged.
Thank you for the quick help!
11-18-2015 11:47
11-18-2015 11:47
11-18-2015 14:18
11-18-2015 14:18
11-19-2015 10:35
11-19-2015 10:35
You could show people when they last synced their tracker: https://dev.fitbit.com/docs/devices/#get-devices