Contents

errorAuthorizationDenied

The user hasn’t given the app permission to save data.

Declaration

static var errorAuthorizationDenied: HKError.Code { get }

Discussion

This error occurs only when your app attempts to save data. If your app isn’t authorized to query data, it receives only the data that the app has saved into HealthKit. For more information, see Setting up HealthKit.

See Also

Accessing errors