react-native-healthkit icon indicating copy to clipboard operation
react-native-healthkit copied to clipboard

Incorrect metadata key name for deduplicating records

Open mordechaim opened this issue 2 years ago • 3 comments

https://github.com/Kingstinct/react-native-healthkit/blob/49c81d7fcf75e7e970c6841696c858a5d0e73ce5/src/native-types.ts#L328-L329

According to Apple, the correct names are HKMetadataKeySyncIdentifier and HKMetadataKeySyncVersion. I actually tried both key names, but only the HKMetadataKeyXXX key correctly deduplicated the data.

Thanks for this amazing library; it's the most comprehensive react native bridge for HealthKit ❤️

EDIT: I now notice other keys missing the MetadataKey prefix, such as HKMetadataKeyReferenceRangeLowerLimit

mordechaim avatar Nov 07 '22 18:11 mordechaim