mirror of
https://github.com/wger-project/flutter.git
synced 2026-11-28 17:08:29 +01:00
Steps, distance and active energy were added up from the raw HealthKit samples, so a day recorded by both an iPhone and an Apple Watch was counted twice. Android already takes the deduplicated total from Health Connect for such days; iOS now does the same through HealthKit's statistics query, which resolves overlapping sources by the user's priority like the Health app does. Existing iOS installs read the history of these metrics once more on their next sync, which corrects the days stored with the raw sum. See wger-project/wger#2608