Global Variable


The version number for a piece of data, used when updating or syncing.


NSString *const HKMetadataKeySyncVersion;


This key takes an NSNumber as its value. When you save an object to the HealthKit store, the new object replaces any matching objects (existing objects with a matching HKMetadataKeySyncIdentifier value) with a lower sync version.

For more information, see HKMetadataKeySyncIdentifier.

See Also

Sync Keys


A unique string that identifies a piece of data so it can be updated and synced.