Skip to content
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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

YatsenkoDev
Copy link

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.

@rikinpatoliya
Copy link

rikinpatoliya commented Mar 21, 2024

READ_TOTAL_CALORIES_BURNED permission not showing on permission pages.

<uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <!-- Permissions for new android API (Health Connect) -->
    <uses-permission android:name="android.permission.health.READ_STEPS" />
    <uses-permission android:name="android.permission.health.READ_TOTAL_CALORIES_BURNED" />
    <uses-permission android:name="android.permission.health.WRITE_TOTAL_CALORIES_BURNED" />
    <uses-permission android:name="android.permission.health.READ_ACTIVE_CALORIES_BURNED" />

WhatsApp Image 2024-03-21 at 12 42 21_b0e440c7

@YatsenkoDev
Copy link
Author

READ_TOTAL_CALORIES_BURNED permission not showing on permission pages.

<uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <!-- Permissions for new android API (Health Connect) -->
    <uses-permission android:name="android.permission.health.READ_STEPS" />
    <uses-permission android:name="android.permission.health.READ_TOTAL_CALORIES_BURNED" />
    <uses-permission android:name="android.permission.health.WRITE_TOTAL_CALORIES_BURNED" />
    <uses-permission android:name="android.permission.health.READ_ACTIVE_CALORIES_BURNED" />

WhatsApp Image 2024-03-21 at 12 42 21_b0e440c7

Sorry mate, but I don't think this issue is related to the current pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants