For questions about Android's BiometricPrompt API feature used for biometric authentication.
Questions tagged [android-biometric-prompt]
211 questions
1
vote
0 answers
Disable biometry authentication on demand
I am trying to implement user-defined app locking mechanism with the help of BiometricManager. The app's config has a toggle which allows users to either enable or disable app lock. Once enabled, I want to use new biometric API. This part looks…

nKognito
- 6,297
- 17
- 77
- 138
1
vote
1 answer
java.lang.ClassCastException: com.compose.MainActivity cannot be cast to androidx.fragment.app.FragmentActivity
I am trying to integrate BiometricPrompt with Jetpackcompose
Here is a snippet of my code which is called on a button click
val context = LocalContext.current
val biometricPrompt =BiometricPrompt(context as…

Go Fudge YourSelves
- 139
- 1
- 2
- 10
1
vote
1 answer
Android BiometricPrompt: Face authentication is ignored when device credential is allowed
I integrate Biometric authentication using Fingerprint, Face, and device credentials (PIN/PASSCODE/PATTERN). But I got the issue with face authentication when using device credentials. it happens on some devices.
When I integrate Fingerprint, Face,…

Tuan
- 11
- 3
1
vote
0 answers
BiometricManager.canAuthenticate(BIOMETRIC_WEAK) returns BIOMETRIC_ERROR_NONE_ENROLLED on release build on Samsung and OnePlus devices
We are dealing with an issue in biometric where Biometric is working fine on all devices with apk build. We have uploaded same build (app bundle) on play store for closed testing and noticed that Biometric is not working on some device manufactures.…

Mayur Gade
- 11
- 1
1
vote
1 answer
Deprecated method createConfirmDeviceCredentialIntent (CharSequence, CharSequence)
There is a method for creating intent for asking user to authenticate. It was prompting to authenticate with biometrics (if exists) or with PIN/Pattern/Password if no biometrics enrolled.
Now it is deprecated and suggests to build biometric prompt…

Evgeniy Mishustin
- 3,343
- 3
- 42
- 81
1
vote
1 answer
How to listen the cancel event from confirmation screen of a biometric prompt?
I'm implementing the latest Biometric prompt in my app and made the Confirmation required true. While doing facial recognition it prompts for user confirmation on successful face verification. If the user clicks on the cancel in the confirmation…

Raj
- 11
- 1
1
vote
0 answers
Is already there a fix to the OxygenOS issue with the BiometricPrompt?
I understand that until version 9 of Oxygen this error occurred:
Biometric Prompt issue on Oneplus 6T
I'm Filtering devices with in-display fingerprint sensor, so I can give a specific behaviour:
//OnePlus models without in-display biometric…

Herno
- 11
- 3
1
vote
0 answers
Decrypting Encrypted data that has been encrypted as followed by the official google documentation
I encrypted data successfully using the biometric manager flow as shown by google but on trying the decrypt the encrypted data, I keep hitting the IllegalBlockSizeException clause. I need help please.
This is my class that handles all the…

Neo
- 449
- 1
- 5
- 9
1
vote
0 answers
Are there internal strings for the biometric prompt?
I'm trying to develop a Library which use a biometric prompt, but some of the methods required is the setTitle, setSubtitle and the NegativeButtonText.
open BiometricPrompt.PromptInfo.Builder
setNegativeButtonText(@NonNull negativeButtonText:…

Víctor Martín
- 3,352
- 7
- 48
- 94
1
vote
1 answer
Can I use FingerprintManager instead of BiometricPrompt in API 28 or newer?
Can I use FingerprintManager instead of BiometricPrompt in API 28 or newer?
I noticed there is a lot of apps that used AuthenticationCallback but not sure that AuthenticationCallback backs to FingerprintManager or BiometricPrompt but these apps…

Taha Sami
- 1,565
- 1
- 16
- 43
1
vote
0 answers
BiometricManager.canAuthenticate() = BIOMETRIC_SUCCESS but BiometricPrompt.AuthenticationCallback() returns errorCode 9 on lockout
Just as the title says, my project is using BiometricManager.from(context).canAuthenticate() to determine if a user is eligible to be prompted for Biometrics, then using BiometricPrompt to actually save/access the password.
Once Biometrics are…

Mark Fraser
- 11
- 1
1
vote
0 answers
I want to create a plugin using biometric authentication (Biometric) provided by Google and implement it in Unity
I would like to implement biometric authentication using the biometrics provided by Googole, but I am having trouble getting it to work.
The following is a reference site on…

yamato
- 21
- 3
1
vote
1 answer
How to use android biometrics with firebase email authentication?
I'm trying to use firebase email authentication and enable biometrics.
The solution I am able to come to is:
enable biometrics and get the fingerprint token
encrypt the user's username+password with this token
store the encrypted username+password…

ir2pid
- 5,604
- 12
- 63
- 107
1
vote
1 answer
BiometricPrompt Jetpack Compose
I would like to use biometric authentication on my application.
To do this in my view I declare a val context = LocalContext.current as its value and then I cast it to FragmentActivity.
But it crashes all the time with the following error:…

Paul
- 23
- 7
1
vote
1 answer
Android biometrics UserNotAuthenticatedException on fingerprint
I'm using a SecretKey in my sample app for Mac-signing. The key is generated with builder parameter
setUserAuthenticationValidityDurationSeconds(10)
to allow the usage of the fingerprint and the (un)lock device PIN to secure my key.
The UI does…

Michael Fehr
- 5,827
- 2
- 19
- 40