Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Subscription: missing user activities

Hi,

We are using your Subscriptions API to sync the activities (steps) tracked at Fitbit web or by a Fitbit device, and in the past few months we’ve noticed that not all of the notifications are coming to us from your API resulting in some of our members not getting their activities synced.

We have been using this page in an attempt to troubleshoot, and all look good according to it and we still cannot identify the root cause of the issue, even after we have added some more logs on our side. What we see is that for some users we do receive notification from Fitbit, that there is a new activity to be synced, and for others - not. And we cannot identify why some notifications are not being sent.

I tested this with my account. I granted authorization to our app and granted access to all data Still my activities were not synced but other user's were
.

Can you please advise what we should be looking for?

Best Answer
0 Votes
6 REPLIES 6

Hi @JohnDK 

 

I can help investigate from our side.   Would you please provide me your client ID, the Fitbit user ID of the person within the last 6 days that sync'd their device but you did not receive a notification, and what date/time did the user sync their device?   

 

I'd also check to see if the user consented to share the activity data with your application and you have an active subscription for this user.   You can query the Get Subscription List endpoint to see what subscriptions are created for the user.

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes

Hi @Gordon-C 

 

thanks for your quick response.

I just logged an activity with this user (about 6:19 am CET) and it was not synced with our app even though I have granted consent to the app.

 

Can I PM you so we can discuss this in more detail?

Best Answer
0 Votes

Sure...send me a PM with the details of the problem.

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes

Hi GordonFitbit,

did you guys have a chance to figure out what is going on? My name is Natalia, I am a PO at VIrtuagym, I am contacting you also on behalf of VIrtuagym as this issue affects a lot of our users and we were not able to understand the root cause so far.

Anyhow that we can assist the investigation?

 

Best,

Natalia

Best Answer
0 Votes

Hi @NataliaVG 

 

We're not sure exactly why notifications stopped for some users.  If the user revokes access, we will delete the subscriptions that were created.  When the user reconsents, the application needs to recreate the subscriptions.  Remember for all POST requests, it's a requirement to include the Content-Length header with the Add Subscription endpoint.   Not including this header will cause the Add Subscription call to fail.

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes

Hi @Gordon-C

 

thanks for your reply. We were able to resolve the issue, thanks for you help and the information provided.

 

Best,

NataliaVG

Best Answer
0 Votes