08-02-2022 08:42
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-02-2022 08:42
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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);
}
Answered! Go to the Best Answer.

Accepted Solutions
08-02-2022 13:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


08-02-2022 13:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I'm pretty sure this is a bug in the API (ie, in Fitbit's code). ☹️
Gondwana Software

08-02-2022 13:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


08-02-2022 13:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I'm pretty sure this is a bug in the API (ie, in Fitbit's code). ☹️
Gondwana Software

08-02-2022 13:23
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-02-2022 13:23
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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

