For questions about Android's BiometricPrompt API feature used for biometric authentication.
Questions tagged [android-biometric-prompt]
211 questions
37
votes
1 answer
Android emulator face recognition
Is there any way to test android face recognition provided by BiometricPrompt on an emulator?
I know of the command:
adb -e emu finger touch
but this is only for fingerprint authentication.

AdamN
- 476
- 5
- 13
20
votes
2 answers
Android BiometricPrompt: Cannot resolve symbol PromptInfo
When I copied the following code from this developer.android.com tutorial about adding biometric authentication in your android app:
BiometricPrompt.PromptInfo promptInfo =
new BiometricPrompt.PromptInfo.Builder()
…

Vansh Arora
- 392
- 2
- 13
16
votes
1 answer
BiometricPrompt crashes on Samsung S9 with Face unlock
I am using the new BiometricPrompt API in Android P (API 28) in my application. (I am actually using it inside a wrapper based on this project so that it functions on older devices too, but that is not relevant to the question.) This is working very…

Moshe Katz
- 15,992
- 7
- 69
- 116
15
votes
1 answer
KeyGeneration using AndroidX.Biometric fails if only face as biometric is installed
we are currently trying to sign data with biometrics, which we use the androidx.biometric library for.
The Problem is, if no Fingerprint ist installed but a face registered we cannot generate any keys.
With Fingerprint only or with the combination…

Langohr
- 217
- 2
- 10
12
votes
1 answer
Which Android device has BIOMETRIC_STRONG (Class 3) face authentication?
I have implemented biometric authentication in my application with biometric level BIOMETRIC_STRONG (Class 3). The fingerprint authentication is working as expected but I couldn't able to test the face authentication on any of my devices (Samsung…

Suneesh Ambatt
- 1,347
- 1
- 11
- 41
12
votes
5 answers
Can we get face-id in react native for Android devices?
I was implementing biometrics in my app for authentication. I am using react-native biometrics for it. Every things working good just one stucked. Face-id is not working in Android. I did a lot of googling but unable to find some satisfactory…

Bhaskar Joshi
- 413
- 7
- 18
12
votes
4 answers
How to make BiometricPrompt non-cancelable?
I am using BiometricPrompt in my application. It works well and shows the dialog when call the authenticate() method. But this dialog gets closing when I click outside the dialog. How to prevent it? How to make BiometricPrompt's dialog…

BArtWell
- 4,176
- 10
- 63
- 106
12
votes
3 answers
Android crashed after updating androidx biometric to 1.0.0-alpha04
Everything works fine with 'androidx.biometric:biometric:1.0.0-alpha03', however when I build my project with the latest 'androidx.biometric:biometric:1.0.0-alpha04' and call myBiometricPrompt.authenticate(promptInfo) it throws this exception:…

chabislav
- 939
- 1
- 8
- 27
10
votes
4 answers
Face Authentication using androidx Biometric API in Android
I need to integrate Biometric authentication using Fingerprint and Face authentication. Fingerprint authentication works perfectly but when I set only Face authentication I am getting Biometric not enrolled response from…

Vijay Patole
- 355
- 3
- 17
10
votes
2 answers
BiometricPrompt iris and face prompt is not working with Crypto object authentication. #AndroidX
Issue
Biometric authentication iris and face-detection is not prompting with
biometricPrompt.authenticate(**crypto**, promptInfo) call.
Source reference:
Securing data with BiometricPrompt (19 May 2019)
One Biometric API Over all Android (30…

CoDe
- 11,056
- 14
- 90
- 197
10
votes
1 answer
FragmentManager is already executing transactions when Executing biometricPrompt?.authenticate(promptInfo) inside a Fragment
If you create biometricPrompt and promptInfo in the activity, it works fine. But I can't manage to make it work inside a fragment.
This is inside of a fragment and it gets called inside OnViewCreated. You do the same inside an activity it works…

WinterChilly
- 1,549
- 3
- 21
- 34
9
votes
1 answer
What is the USE_BIOMETRIC permission needed for?
The documentation for the USE_BIOMETRIC permission says
Allows an app to use device supported biometric modalities.
But AndroidX's BiometricPrompt works without this permission. So what exactly is it needed for?

Florian Walther
- 6,237
- 5
- 46
- 104
8
votes
1 answer
Android Biometric Prompt is not dismissed when device home button is pressed
When Biometric prompt is shown in App with setDeviceCredentialAllowed(true), It is not dismissed when device home button is pressed. It throws BiometricPrompt.ERROR_USER_CANCELED error and keeps the System UI as is.
Did any one face this issue ? Is…

Shanker
- 864
- 6
- 24
8
votes
1 answer
Android jetpack biometric DeviceCredentialHandlerActivity exported=true really needed?
I implemented the new biometric lib using setDeviceCredentialAllowed(true) as shown in the official documentation
In this lib there is an activity being used "DeviceCredentialHandlerActivity", this activity has exported=true in the manifest, why is…

David
- 3,971
- 1
- 26
- 65
8
votes
6 answers
Check if devices has biometric enabled with androidx biometric prompt
In Android BiometricPrompt prompt has replaced the deprecated FingerprintManager.
FingerPrintManager has two functions hasEnrolledFingerprints() and isHardwareDetected() to check if the device supports fingerprints and if the user has enrolled any…

Stephan
- 15,704
- 7
- 48
- 63