We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Has anyone tried to get Active Calories burned? I always get 0, I wonder if this is a problem with health connect ?
The text was updated successfully, but these errors were encountered:
const calories = 100; const caloriesRecords: ActiveCaloriesBurnedRecord = { recordType: "ActiveCaloriesBurned", energy: { value: calories, unit: "kilocalories", }, startTime: startDate.toISOString(), endTime: endDate.toISOString(), };
Using kilocalories, this shows as 100 in Health Connect; if you use calories, it will show 0.
Health Connect will set a value of 0.1 to zero when it displays it.
Either multiply your calories by 1000 or use kilocalories.
You might be requesting the wrong unit. It isn't very clear because the entire world used kilocalories and calories interchangeably
Sorry, something went wrong.
No branches or pull requests
Has anyone tried to get Active Calories burned? I always get 0, I wonder if this is a problem with health connect ?
The text was updated successfully, but these errors were encountered: