Post not yet marked as solved
Post marked as unsolved with 0 replies, 344 views
Even if you have granted read permission for specific health data items (such as walking, weight, etc.), calling the function below will return the permission as 'sharingDenied'. How can I obtain 'sharingAuthorized'?
let stepType = HKObjectType.quantityType(forIdentifier: .stepCount)!
let authorizationStatus = HKHealthStore().authorizationStatus(for: stepType)
//authorizationStatus => sharingDenied