Contents

deviceOwnerAuthenticationWithWatch

User authentication with Apple Watch.

Declaration

static var deviceOwnerAuthenticationWithWatch: LAPolicy { get }

Discussion

You use the deviceOwnerAuthenticationWithWatch policy when calling the evaluatePolicy(_:localizedReason:reply:) method to authenticate the user with Apple Watch. If the evaluation method can’t find a nearby, paired Apple Watch running watchOS 6 or later, it returns the watchNotAvailable error.

During authentication, the system presents a dialog that resembles the dialog presented for biometric authentication. The user confirms authentication by double-clicking the watch’s side button.

To allow the user to authenticate either with an Apple Watch or with biometrics, use the deviceOwnerAuthenticationWithBiometricsOrWatch policy instead. To allow the user to authenticate with either of these options or a password, use the LAPolicy.deviceOwnerAuthentication policy.

See Also

Policies