react-native-healthkit
react-native-healthkit copied to clipboard
Incorrect metadata key name for deduplicating records
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