Closed awatson1978 closed 5 years ago
Oh, you know what.... this is using queryForClinicalRecordsWithFHIRResourceType
and is specific to PR #104
Ah, figured it out. There's a third key that needs to be set into the .plist file: NSHealthClinicalHealthRecordsShareUsageDescription
.
I have added NSHealthClinicalHealthRecordsShareUsageDescription but still getting the following issue.
Foundation.MonoTouchException: Objective-C exception thrown. Name: NSInvalidArgumentException Reason: Authorization to read the following types is disallowed: HKClinicalTypeIdentifierMedicationRecord, HKClinicalTypeIdentifierConditionRecord, HKClinicalTypeIdentifierProcedureRecord, HKClinicalTypeIdentifierVitalSignRecord, HKClinicalTypeIdentifierImmunizationRecord, HKClinicalTypeIdentifierAllergyRecord, HKClinicalTypeIdentifierLabResultRecord
@qaliwebguru you may have not enabled HealthKit capability.
Has anyone seen an error message similar to the following?
NSHealthShareUsageDescription
andNSHealthUpdateUsageDescription
are both set correctly.The relevant code block is the following: