cph-cachet / flutter-plugins

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

[Health 11.0.0] Double step count from Health Connect when there are multiple sources and excluding manual entry #1066

Open KWM0 opened 3 weeks ago

KWM0 commented 3 weeks ago

Device / Emulator and OS

Describe the bug

Getting nearly double the steps when retrieve steps from health package when excluding manual entry and multiple sources (Google Fit and Samsung Health) in Health Connect.

To Reproduce

Retrieving steps from getTotalStepsInInterval and includeManualEntry: false

Expected behavior

Only retrieve the step data from 1 source when excluding manual entry

Actual behavior

Currently retrieved all the step data together from all sources (Google Fit and Samsung Health) when excluding manual entry.

Screenshots

Media Media (1) Media (2) Media (3) Media (4)