From 818b2c724f680bfcfe5d2230cf75cd0a0ddbdc95 Mon Sep 17 00:00:00 2001 From: Mateo1907 Date: Mon, 6 Jan 2020 17:22:56 +0100 Subject: [PATCH] Biological sex permission request --- RCTAppleHealthKit/RCTAppleHealthKit+TypesAndPermissions.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RCTAppleHealthKit/RCTAppleHealthKit+TypesAndPermissions.m b/RCTAppleHealthKit/RCTAppleHealthKit+TypesAndPermissions.m index 727f05dc..55f804ca 100644 --- a/RCTAppleHealthKit/RCTAppleHealthKit+TypesAndPermissions.m +++ b/RCTAppleHealthKit/RCTAppleHealthKit+TypesAndPermissions.m @@ -19,6 +19,8 @@ - (nullable HKObjectType *)getReadPermFromText:(nonnull NSString*)key { return [HKObjectType quantityTypeForIdentifier:HKQuantityTypeIdentifierHeight]; }else if ([@"Weight" isEqualToString: key]) { return [HKObjectType quantityTypeForIdentifier:HKQuantityTypeIdentifierBodyMass]; + }else if ([@"BiologicalSex" isEqualToString: key]) { + return [HKObjectType characteristicTypeForIdentifier:HKCharacteristicTypeIdentifierBiologicalSex]; } // Body Measurements