-
Notifications
You must be signed in to change notification settings - Fork 674
New issue
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
[HEALTH] Added getTotalCaloriesInInterval and getTotalDistanceInInterval methods #900
base: master
Are you sure you want to change the base?
Conversation
…ers to meters for consistency with iOS.
packages/health/android/src/main/kotlin/cachet/plugins/health/HealthPlugin.kt
Outdated
Show resolved
Hide resolved
packages/health/android/src/main/kotlin/cachet/plugins/health/HealthPlugin.kt
Outdated
Show resolved
Hide resolved
… and distance to merge_distance_delta.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry mate, but I don't think this issue is related to the current pull request. |
Hi @YatsenkoDev, thanks for your PR, this looks like a useful addition! There have been some changes on master, would you mind updating your PR to resolve the merge conflicts? |
Hi @YatsenkoDev, It still had some total value off when I tried to get data per day. I have tried to get a whole month, then I found that in some days the value is not matched. As the comparison, we have some differences in some days: Like calories, with distance I also tried to get for a month and also found some days value does not match with health detail. So why does it still have some days not matched? Is there any other solution to make it exactly the same value as displayed in Health? |
Added new methods, getTotalCaloriesInInterval and getTotalDistanceInInterval, using a similar approach to the existing getTotalStepsInInterval for retrieving the aggregated total distance and calories using native Android and iOS methods. The implementation is based on the existing code from getTotalStepsInInterval.