02-03-2015 10:57
02-03-2015 10:57
I have one FitBit user out of about 1500 whose activity data isn't being pushed to us. She says her data quit being pushed to our application sometime ago when she changed from her Ultra to a Charge -- ever since, she's been using our application's "fetch Fitbit data" button to pull data from Fitbit. I looked at her subscriptions via the API and she had an activities subscription to have her activity data pushed to us.
I decided to deauthorize our application, make sure our application was revoked from her FitBit Settings -> Applications page, reauthorize our application via the API, and resubscribe her Fitbit account via the API to activities to have her activity data pushed to our application. I believe all looks well, our application has permission and she has an activities subscription, but her data still isn't being pushed to our application.
Any suggestions for what to look at?
Answered! Go to the Best Answer.
02-11-2015 09:09 - edited 02-11-2015 09:13
02-11-2015 09:09 - edited 02-11-2015 09:13
Hello Ivan - Thanks for the reply. I should have returned and cleaned up this thread when I got the user's push working again -- I'll do so now.
Fit bit is pushing data to us now for this user's account. What I did was (a) methodically back out all links between our system and her Fitbit account and (b) re-establish them.
- deleted her activities subscription via the api
- deleted her Fitbit records from our system
- revoked our application's access to her account in Fitbit (Settings -> Applications, she had two entries)
- granted our application access to her account (OAuth Athentication)
- re-subscribed her to activities pushes
... and all worked well after that. The only difference I remember is revoking access to two application entries.
Kind regards.
Jay
02-11-2015 08:51
02-11-2015 08:51
Check what this API endpoint returns for that user:
https://api.fitbit.com/1/user/-/apiSubscriptions.json
02-11-2015 09:09 - edited 02-11-2015 09:13
02-11-2015 09:09 - edited 02-11-2015 09:13
Hello Ivan - Thanks for the reply. I should have returned and cleaned up this thread when I got the user's push working again -- I'll do so now.
Fit bit is pushing data to us now for this user's account. What I did was (a) methodically back out all links between our system and her Fitbit account and (b) re-establish them.
- deleted her activities subscription via the api
- deleted her Fitbit records from our system
- revoked our application's access to her account in Fitbit (Settings -> Applications, she had two entries)
- granted our application access to her account (OAuth Athentication)
- re-subscribed her to activities pushes
... and all worked well after that. The only difference I remember is revoking access to two application entries.
Kind regards.
Jay