09-21-2020 03:06
09-21-2020 03:06
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?
09-21-2020 15:58
09-21-2020 15:58
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.
09-21-2020 21:38
09-21-2020 21:38
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?
09-22-2020 09:34
09-22-2020 09:34
Sure...send me a PM with the details of the problem.
10-01-2020 06:20
10-01-2020 06:20
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
10-10-2020 19:38 - edited 10-10-2020 19:39
10-10-2020 19:38 - edited 10-10-2020 19:39
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.
10-12-2020 02:47
10-12-2020 02:47
Hi @Gordon-C
thanks for your reply. We were able to resolve the issue, thanks for you help and the information provided.
Best,
NataliaVG