Closed jamestapping closed 10 months ago
Is Face ID enabled on the device?
For simulators you have to tap on 'enroll' for FaceID
Yes face-id is enabled on the device. And for the simulator I tried enrolling.
iOS 17.2.1 / iPhone 13 mini
Can you include screenshots/screen recordings? I'll take a look into this tomorrow
Ok will do, I just pulled it out of the project but will try again later. Thanks
Hiya, Here is a screen recording, hope it's useful.
On a physical device the button would show as on.
Thanks
This is what Apple's documentation says. So I can assume that it's because biometry is either not available, not enrolled, or locked out. LocalAuthenticationKit uses the 1st party LocalAuthentication package.
/// Device owner will be authenticated by biometry or device passcode.
///
/// @discussion Biometric or passcode authentication is required. If the biometry is available, enrolled and
/// not locked out, users are asked for it first. Otherwise they are asked to enter device
/// passcode. If passcode is not enabled, policy evaluation will fail with LAErrorPasscodeNotSet.
Ah ok, I probably need to import LocalAuthentication in my project? I'll try that
I'm only ever asked for password never Face ID dialog.
Tested on physical and simulator , same result. (iPhone 13 mini)