Contents

HKError.Code.errorAuthorizationDenied

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

Declaration

case errorAuthorizationDenied

Mentioned in

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 on setting up HealthKit, see HealthKit.

See Also

Errors