Closed agilst closed 2 weeks ago
Could you confirm if you are using the health version 6 and not the latest? is it possible to test with the latest release? However, I can't see why this is a problem. The health package is designed to handle different types of health data which includes distance and workout activities which are two separate things.
The date format is correct and we are using ISO 8601 date format which you can easily convert to other types if you need to.
Yes, I was using the health version 6 and indeed there are some duplicate data with different WorkoutType pulled from Apple Health. However, I can mark this as solved as I have upgraded the health package to latest version and confirm no duplicate data.
uuid: E8245A64-1DB9-4364-9EBC-A90B3DB9A51E,
value: WorkoutHealthValue - workoutActivityType: SWIMMING_OPEN_WATER,
totalEnergyBurned: null,
totalEnergyBurnedUnit: KILOCALORIE,
totalDistance: 213,
totalDistanceUnit: METER
totalSteps: null,
totalStepsUnit: null,
unit: NO_UNIT,
dateFrom: 2024-10-14 16:37:00.000,
dateTo: 2024-10-14 18:37:00.000,
dataType: WORKOUT,
platform: HealthPlatformType.appleHealth,
deviceId: C2F97EBB-B5B6-477B-8BB1-637EBFD037D0,
sourceId: com.apple.Health,
sourceName: Health
recordingMethod: RecordingMethod.unknown
workoutSummary: null
metadata: null
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:
Description
Swimming activity on Google Fit always pulled as double activities with the same value, the first one as DISTANCE_DELTA and the other one is WORKOUT - OTHER.
On top of that, the
dateTo
has.001
millisecond different. can it be fetched as single data with a correct dataType?To Reproduce
Fetch data as usual
Expected behavior
Doubled data should be pulled as single data with a correct dataType
Screenshots