08-02-2022 08:42
08-02-2022 08:42
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.
Best Answer08-02-2022 13:06
Gold Fitbit Product Experts share support knowledge on the forums and advocate for the betterment of Fitbit products and services. Learn more
08-02-2022 13:06
I'm pretty sure this is a bug in the API (ie, in Fitbit's code). ☹️
Best Answer08-02-2022 13:06
Gold Fitbit Product Experts share support knowledge on the forums and advocate for the betterment of Fitbit products and services. Learn more
08-02-2022 13:06
I'm pretty sure this is a bug in the API (ie, in Fitbit's code). ☹️
Best Answer08-02-2022 13:23
08-02-2022 13:23
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