cordova-plugin-health: Wrong value in Calories

Hello, I am using Health App to retrieve activities.

In the Health App I have created a record (Updated):

SAMPLE DETAILS

Workout Type: Running
Duration: 1 Hour
Start Time: Oct 25, 2017 at 2:30:00 PM
End Time: Oct 25, 2017 at 2:44:00 PM
Source: Health
Date Added to Health: Oct 25, 2017 at 2:44:29 PM
Was User Entered: Yes

WORKOUT SAMPLES

Total Active Energy: 125 kcal
Total Walking + Running Distance: 0.5 km

And the returned data are:

[
    {
        "startDate":"2017-10-25T11:30:00.000Z",
        "endDate":"2017-10-25T11:44:00.000Z",
        "value":"running",
        "unit":"activity-Type"
        "calories": 29,
        "distance": 500,
        "sourceName": "Health",
        "sourceBundleId":"com.apple.Health",
    }
]

The calorie value is 29 instead of 125

Am I doing something wrong?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 15 (5 by maintainers)

Most upvoted comments

released.