Biometric Unlock
Biometric unlock asks for Face ID or a fingerprint before the next step: showing a ticket, confirming a payment, opening something private. It does not sign anyone in; it confirms that the person holding the phone is the one who unlocked it.
Adding it
Add Biometric unlock to a button and fill in:
Only Face ID or a fingerprint counts: the phone's passcode is not offered. If the person cancels the prompt, or it gives up after failed tries, nothing runs.
When it cannot be used
Inside On denied, the reason reads one of two words:
Without On denied, the app says so itself: “Face ID or fingerprint isn't set up for this app.” with an Open settings button, or “Too many tries. Unlock your phone with its passcode, then try again.” Any other failure says “Couldn't confirm it's you.”
Face ID's words
What each export uses
Flutter. local_auth. On Android it needs your MainActivity to extend FlutterFragmentActivity: the export writes koolbase/biometrics/MainActivity.kt.txt to merge once.
Expo. expo-local-authentication.
Web. Not available: a browser has no prompt that confirms the person holding the device, so a web design with Biometric unlock does not export. Passkeys, a way to sign in, are separate.
Trying it
Preview cannot use Face ID or a fingerprint, so it says the prompt runs on a device. On a phone, try it once with Face ID or a fingerprint set up, once with none, and once after turning Face ID off for the app in Settings.