You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
KWM0
changed the title
[Health 11.0.0] Double step count from Health Connect with multiple sources
[Health 11.0.0] Double step count from Health Connect when there are multiple sources and excluding manual entry
Oct 30, 2024
@KWM0@mukhtarfauzi The HealthDataPoint have sourcePlatform and sourceDeviceId attributes. Why you're not filtering the data points based on these attributes?
We rely on getTotalStepsInInterval because in iOS, Apple Health will aggregate the step count if there are multiple sources (iPhone + Apple Watch). If we get manually via getHealthDataFromTypes, we will have to manually aggregate to remove duplicates, and removeDuplicates doesn't really help.
Although this is an Android issue, we are hoping that the behavior is similar to iOS
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
andincludeManualEntry: 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
The text was updated successfully, but these errors were encountered: