HKError.Code.errorDatabaseInaccessible
The HealthKit data is unavailable because it’s protected and the device is locked.
Declaration
case errorDatabaseInaccessibleMentioned in
Discussion
This error occurs when your app queries for HealthKit data while the device is locked. You can, however, still save data. This data is saved into a temporary file, which is merged with HealthKit’s data when the user unlocks their device.
See Also
Errors
HKError.Code.errorHealthDataUnavailableHKError.Code.errorHealthDataRestrictedHKError.Code.errorInvalidArgumentHKError.Code.errorAuthorizationDeniedHKError.Code.errorAuthorizationNotDeterminedHKError.Code.errorRequiredAuthorizationDeniedHKError.Code.errorUserCanceledHKError.Code.errorAnotherWorkoutSessionStartedHKError.Code.errorUserExitedWorkoutSessionHKError.Code.errorNoData