Dario Salvi

Results 60 comments of Dario Salvi

this is a known issue, basal calories are present only when Google Fit decides to compute them, and we don't know when this happens. The function `getBasalAVG()` scans an entire...

hey, it's very good that you've found that out! Unfortunately we don't know when exactly people input that data, so the problem is still there. Based on what you say,...

@juanico18 calories retrieved with activities are total, not active, see code from [here](https://github.com/dariosalvi78/cordova-plugin-health/blob/49b6c7293e7a349ca27711dfdf066b358094c679/src/android/HealthPlugin.java#L644). Your proposal wouldn't solve it unfortunately.

the query that is issued to retrieve calories associated to activities is, without any doubt, related to the total calories, see the source code as pointed above. See the definition...

Bear in mind that the calories that we retrieve per activity are based on the timestamps, not on the source of the input. This means that there is no explicit...

it's not supported for workouts, see https://github.com/dariosalvi78/cordova-plugin-health/blob/bfe553141b2ae76175a0a74aead3339446d37aa3/src/ios/HealthKit.m#L796 any help to fix this is welcome

has this problem been fixed? I don't think it's related to the plugin, but I'd be happy to be contradicted.

I wouldn't mind adding this information to the data returned, it is full of "juice". I am not sure how make this uniform across the API though. But to start...

Background in Cordova is quite challenging. [There are ways](https://github.com/katzer/cordova-plugin-background-mode), but they are not perfect. One way would be registering to data updates with the means explained above, and, as soon...