For questions about Android's BiometricPrompt API feature used for biometric authentication.
Questions tagged [android-biometric-prompt]
211 questions
3
votes
1 answer
java.lang.IllegalStateException error in BiometricPrompt.authenticate
I am using androidx.biometric:biometric:1.0.0-alpha04 library in my project. But I could see many crashes in crashlytics as well as play-store when I am trying to authenticate using BiometricPrompt. Crash happens at below…

Mangesh Kadam
- 587
- 5
- 19
3
votes
0 answers
setUserAuthenticationValidityDurationSeconds doesn't work with BiometricPrompt
I am implemented biometric authentication with BiometricPrompt (androidx). It works well but I can use key only one time. If I trying to use it second time immedatelly after first time - I get an exception UserNotAuthenticatedException. For key…

BArtWell
- 4,176
- 10
- 63
- 106
2
votes
0 answers
UserNotAuthenticated Exception during initSign on Android
I'm seeing app crashes in production on Android 12 and 13 (so far) as follows when calling Signature.initSign:
android.security.keystore.UserNotAuthenticatedException: User not authenticated
at…

user1173706
- 2,612
- 3
- 19
- 29
2
votes
0 answers
React Native Keychain - Cannot read property 'getSupportedBiometryType' of null
I have followed the installation steps, but when I start the application on android I get an error saying: "Cannot read property 'getSupportedBiometryType' of null, please check the last image.
Run yarn add react-native-keychain - Only for React…

Branislav Brnjos
- 21
- 1
2
votes
0 answers
Ask for only either Face ID or Fingerprint Id in Android app
I want an implementation such that if both Face ID and fingerprint ID is enabled in user's device - my app will ask for authentication with Face ID, if only Face ID is enabled in user's device - my app will ask for authentication with Face ID, and…

Sparsh Dutta
- 2,450
- 4
- 27
- 54
2
votes
0 answers
Is there a possibility to know which biometric authentication the user used with the BiometricPrompt
I want to know if in the onAuthenticationSucceeded() method it was possible to check which Biometric authentication method the user used. Not only if it was a weak or strong method but if they used facial recognition or fingerprint for example.
Here…

Axel
- 43
- 6
2
votes
0 answers
Face unlock option not showing
Okay so my application is to be used on a device that does not have a fingerprint sensor but has a face unlock option. I tested the following code with my phone (Xiaomi Redmi note 8 pro) which has both fingerprint and face unlock options. the…

Ammar Ahsan
- 83
- 1
- 9
2
votes
1 answer
Biometrics prompt (face authentication) when camera access is blocked (Android 12 - Pixel)
Android 12 came up with a new Privacy Settings to disable access to the Camera and Mic sensors, which is referred as Toggles in the docs.
As it is mentioned in the docs:
the system reminds the user that the device-wide toggle is turned…

rewgoes
- 656
- 2
- 9
- 23
2
votes
0 answers
BiometricPrompt returns false error code 11 (ERROR_NO_BIOMETRICS) in some Samsung devices
BiometricPrompt.authenticate() function returns error code 11 (ERROR_NO_BIOMETRICS) in some Samsung devices like A20s (android 9) meanwhile user has enrolled fingerprint and also canAuthenticate(Authenticators.BIOMETRIC_WEAK) returns 0…

Mohsen Einhesari
- 361
- 2
- 9
2
votes
0 answers
DEVICE_CREDENTIAL dosent work if fingerprint is there
So I have been working on implementing an authentication feature in my app so first I implemented Fingerprint authentication it works perfectly. But now am trying to add an option for pin too I have added that option with the help of documentation…

Mohammed Abid Nafi
- 429
- 7
- 20
2
votes
1 answer
BiometricPrompt FACE ID authentication is not working in some device
I have implemented biometrics authentication but it is working fine in my Samsung(Android 10) device but not working in one plush and MI device.
In Mi(Android 10) and one plush(Android 10) device, it shows only fingerprint prompt but not showing the…

Jenis Kasundra
- 583
- 9
- 19
2
votes
0 answers
How to Implement Custom Fingerprint UI Using BiometricPrompt
We can provide custom UI in FingerprintManager Api but that is deprecated in API level 28. Now android has provided BiometricPrompt API and it's is providing default fingerprint dialog. I have gone through many articles, blogs and tutorial but…

Ritesh Mathur
- 829
- 2
- 8
- 17
2
votes
0 answers
Firebase privacy policy
I nearly finished my first app. I used Firebase authentication, Firebase Realtime Database and Firebase Storage. I didn't find any good documentation or guide about how to write Privacy policy for android app. My question is should I inform the…

Abdulsamet Kılınçarslan
- 262
- 4
- 11
2
votes
1 answer
Android biometrics api isn't using face recognition to unlock
I am using android biometrics API in my app. The version number is:
1.1.0-alpha02
and the device I am testing it on is android 10 (Oneplus 7 pro). Now the biometrics is always showing me the option of fingerprint and not the face recognition to…

nick.tdr
- 4,627
- 4
- 28
- 41
2
votes
1 answer
How to on/off authentication fingerprint or face recognition when used Biometric
I used Biometric to authentication finger print or face recognition. It working! But I want only use fingerprint or only use face recognition if my device is set to both.
Can I do it or not? and how I can do it if it can?
Here is my…

Hoa.Tran
- 935
- 10
- 26