cph-cachet / flutter-plugins

A collection of Flutter plugins developed by CACHET
550 stars 678 forks source link

health ^10.2.0 includeManualEntry : false is giving manual values in Android #1057

Open khanish007 opened 1 month ago

khanish007 commented 1 month ago

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:

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