react-native-healthkit icon indicating copy to clipboard operation
react-native-healthkit copied to clipboard

Couldn't save active energy

Open SergiOnGit opened this issue 7 months ago • 4 comments

I save workout sample like this:

let workoutOptions = {
                end: endDate,
                totals: {
                    energyBurned: calories,
                    activeEnergyBurned: calories,
                },
}

await HealthKit.saveWorkoutSample(66, [], startDate, workoutOptions);

It saves workout but not an active energy.

if calories are 100, apple health app shows related sample 100kcal total active energy, but when i click it, active energy page is empty.

IMG_0098 IMG_0099

SergiOnGit avatar Jul 10 '24 08:07 SergiOnGit