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

Exercise API always Aerobic

ANSWERED

Hello,

I'm working with the Exercise API and I have a special name for the activity type selected. But in the Fitbit Activity Log on my Phone is always Aerobic as activity type...

 

This error is really confusing me...

 

Here are some snippets of my code: 

aButton.addEventListener("click", (evt) => {
  
  vibration.start("nudge");
  
   exercise.stop()

});
exercise.start("Coding Workout", { gps: true });
  
  if (exercise.state === "started") {
    console.warn("Activity Type: " + activity_type)
   console.log(exercise.stats.calories || 0);
}
Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

I'm pretty sure this is a bug in the API (ie, in Fitbit's code). ☹️

Peter McLennan
Gondwana Software

View best answer in original post

Best Answer
0 Votes
2 REPLIES 2

I'm pretty sure this is a bug in the API (ie, in Fitbit's code). ☹️

Peter McLennan
Gondwana Software
Best Answer
0 Votes

Many thanks for the quick reply @Gondwana... That's a bit weird because the Fitbit API documentation says you can give your activity a custom name... I'm currently on my Versa 2 at SDK 4.3 and hoping for one soon fix for the problems in all SDK's if they still occur in other versions

Best Answer
0 Votes