HKError.Code.errorAuthorizationNotDetermined
The app hasn’t yet asked the user for the authorization required to complete the task.
Declaration
case errorAuthorizationNotDeterminedMentioned in
Discussion
This error occurs when your app doesn’t request proper authorization before calling any other HealthKit methods. For more information on setting up HealthKit, see HealthKit.
See Also
Errors
HKError.Code.errorHealthDataUnavailableHKError.Code.errorHealthDataRestrictedHKError.Code.errorInvalidArgumentHKError.Code.errorAuthorizationDeniedHKError.Code.errorRequiredAuthorizationDeniedHKError.Code.errorDatabaseInaccessibleHKError.Code.errorUserCanceledHKError.Code.errorAnotherWorkoutSessionStartedHKError.Code.errorUserExitedWorkoutSessionHKError.Code.errorNoData