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 ^10.2.0 includeManualEntry : false is giving manual values in Android #1057

Open
khanish007 opened this issue Oct 9, 2024 · 0 comments
Labels
bugfix a bug fix

Comments

@khanish007
Copy link

khanish007 commented Oct 9, 2024

Remember to specify the plugin name in the title!

Device / Emulator and OS

Please complete the following information for each phone and/or emulator you're experiencing this bug on:

  • Device: [e.g. Android Realme 7Pro]
  • OS: [e.g. Android 12]

NB: Bugs pertaining to old devices/OS versions will likely not be fixed.

Describe the bug

The issue lies in the Android version of your app. While fetching step data from the Health Connect app, you are using the includeManualEntry: false filter to exclude manually entered steps. However, despite this setting, manual entry data is still being included in the results. On the other hand, this same filter works correctly on iOS, successfully excluding manual entries as expected.

The problem seems to be specific to the Android implementation.

To Reproduce

After integration and steps are coming add this property in getHealthDataFromTypes().
.getHealthDataFromTypes(
types: types, // HealthDataType.STEPS,
startTime: startTime,
endTime: now,
includeManualEntry: false);

and again fetch the data with false value of includeManualEntry. Its still giving us the manual entry from fit app

Expected behavior

When includeManualEntry value is false in getHealthDataFromTypes method. It should not give manual steps in this query.

Actual behavior

Its giving all manual values even includeManualEntry: false is passed in android. In iOS its working

@khanish007 khanish007 added the bugfix a bug fix label Oct 9, 2024
@khanish007 khanish007 changed the title health ^10.2.0 health ^10.2.0 includeManualEntry : false is giving manual values in Android Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix a bug fix
Projects
None yet
Development

No branches or pull requests

1 participant