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

Re: Suggestion: Make API not suck

ANSWERED

I’m experiencing an issue with the Fitbit mobile application. Although it appears to be tracking my data during activities, nothing shows up in the activity list once I finish. Additionally, the API returns the following summary: 

{
"activities": [],
"goals": {
"activeMinutes": 5,
"caloriesOut": 2503,
"distance": 8.05,
"steps": 10000
},
"summary": {
"activeScore": -1,
"activityCalories": 0,
"caloriesBMR": 510,
"caloriesOut": 510,
"distances": [
{
"activity": "total",
"distance": 0
},
{
"activity": "tracker",
"distance": 0
},
{
"activity": "loggedActivities",
"distance": 0
},
{
"activity": "veryActive",
"distance": 0
},
{
"activity": "moderatelyActive",
"distance": 0
},
{
"activity": "lightlyActive",
"distance": 0
},
{
"activity": "sedentaryActive",
"distance": 0
}
],
"fairlyActiveMinutes": 0,
"lightlyActiveMinutes": 0,
"marginalCalories": 0,
"sedentaryMinutes": 443,
"steps": 0,
"veryActiveMinutes": 0
}
}

Previously, the app was working fine and logging all activities correctly. Sometimes it shows the activity is tracked and saved  in the iOS mobile application, still they are not available in WEB API response.  Why this is happening time to time?

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Hi @JohnFitbit , thank you very much for the reply. The issue is like this: 

  1. Sometimes, daily exercises recorded through the mobile application (Track Live) are not saved. Additionally, the exercise day is not highlighted in dark green. This issue is mostly observed on Android phones.

  2. Other times, the exercise is saved in the mobile application but does not send the data through the API. This issue is mostly observed on Apple phones.

In both of the above occurrences, it appears that the activities we performed are shown correctly in the Summary. However, the activities array is empty, as indicated by "activities": []. 

 

View best answer in original post

Best Answer
0 Votes
3 REPLIES 3

Hi @nadun,

Can you clarify if this is happening for every activity you record or certain activities? Do you have an example of a day when this occurred? If you do, can you provide a screenshot of the activities you logged that day from the Fitbit app, then provide a JSON response of that day with the Get Daily Activity Summary endpoint? Also, please PM your user id to me.

Best Answer
0 Votes

Hi @JohnFitbit , thank you very much for the reply. The issue is like this: 

  1. Sometimes, daily exercises recorded through the mobile application (Track Live) are not saved. Additionally, the exercise day is not highlighted in dark green. This issue is mostly observed on Android phones.

  2. Other times, the exercise is saved in the mobile application but does not send the data through the API. This issue is mostly observed on Apple phones.

In both of the above occurrences, it appears that the activities we performed are shown correctly in the Summary. However, the activities array is empty, as indicated by "activities": []. 

 

Best Answer
0 Votes

This happens only to the activities tracked with mobile application (ie. mobile_run)

Best Answer
0 Votes