Questions tagged [android-biometric-prompt]

For questions about Android's BiometricPrompt API feature used for biometric authentication.

Reference:

211 questions
5
votes
0 answers

One Plus devices biometric prompt is dismissed after first failed

I am using BiometricPrompt on my app. When I am trying to use on OnePlus devices and validate the fingerprint with another finger that is not enrolled on the OS, it will trigger the onAuthenticationFailed() callback and the biometricPrompt will be…
5
votes
1 answer

How to determine which biometric to use while using in Biometric Prompt?

eg If user's phone has got both faceID as well as fingerprint. Currently Biometric prompt is selecting one user has setup first
Amar Maharjan
  • 220
  • 4
  • 12
5
votes
1 answer

Biometric prompt not displayed on Android 6

I am trying to use BiometricPrompt to use fingerprint sensor for authentication. My minimum supported sdk is 23 (Android M). It works on all android version I tested except for marshmallow. In marshmallow when I try to use authenticate method on…
4
votes
0 answers

BiometricPrompt description is truncated in Android 12

The only related thing I can see from the Android 12 new features/API added in android documentation is "Localizeable strings for BiometricPrompt" My problem is illustrated in the image below and code looks something like …
4
votes
1 answer

Biometric Prompt SubTitle text getting truncated on Android

I have implemented biometric authentication where my subtitle(Verify biometrics for username to Sign In to My App Name) is a bit long and it's getting truncated at the end this is happening mainly on Samsung Devices. Any limits on character length…
Girish
  • 2,196
  • 2
  • 18
  • 24
4
votes
0 answers

How can I prevent BiometricPrompt from opening over a black screen window on Samsung devices?

I am implementing the BiometricPrompt API and running into undesirable behavior on Samsung Galaxy S10e with OS 10. The BiometricPrompt dialog displays over a black screen rather than having my Login page in the background. If I tap the Overview…
4
votes
1 answer

Invalidate SecretKey when new Biometrics are added

I am running into an issue where I want to invalidate a SecretKey when a user adds a new fingerprint to their Android device. I can generate the key, pull up the biometric prompt with no issues. When I add a new fingerprint, the key is not throwing…
4
votes
1 answer

Biometric Prompt in onResume throws FragmentManager is already executing transactions

I intend to show androidx biometric prompt whenever the user returns to the fragment after navigating away from screen. For this, I have placed the authentication logic in Fragment level onResume. It works fine while navigating in app. But, whenever…
4
votes
1 answer

How to check if device supports face authentication for BiometricPrompt

In my project, we're adding this biometric authentication feature using BiometricPrompt. The biometric can be enabled in the app's settings but the app also needs to display if face biometric is supported on the user's device. Based on my research,…
4
votes
2 answers

How to use face authentication using Biometric api

I used fingerprint authentication using Biometric api and its working.I need to do the same for face recognition ,like for a login button click instead of password i'll be using face authentication . So is it possible with Biometric api or I have to…
Luther
  • 573
  • 1
  • 6
  • 16
4
votes
1 answer

In Android 10 devices, Biometric prompt is failing with ERROR_CANCELED all the time on top of lock screen

In Android 10 devices, Biometric prompt is failing with BiometricPrompt.ERROR_CANCELED all the time on top of the lock screen. Error is returned in onAuthenticationError callback of BiometricPrompt.AuthenticationCallback class. The biometric prompt…
4
votes
1 answer

Android BiometricPrompt DeviceCredentialHandler: onCreate: Executor and/or callback was null

It looks like BiometricPrompt 1.0.0 has a bug where it stays in invisible state throwing that exception ill suggest a workaround in the answer EDIT(thanks to @Isai Damier): Way to reproduce: open the BiometricPrompt press back button - close the…
gor
  • 1,046
  • 1
  • 14
  • 28
4
votes
0 answers

How do you test BiometricPrompt API's face auth without a physical Pixel 4 device?

How does one set up an emulator like Pixel 4 with face unlock capabilities to test/dev for face unlock? I don't see it as an option in android studio's emulator hardware profiles. If I understand correctly, it's supposed to "just work" if using the…
jesobremonte
  • 3,198
  • 2
  • 22
  • 30
3
votes
1 answer

BiometricManager.canAuthenticate(BIOMETRIC_STRONG) == BIOMETRIC_SUCCESS but KeyPairGenerator.initialize() => java.lang.IllegalStateException on API 29

Sorry for such a long question. I've tried to include all relevant information and it is quite a lot. I've been working on this issue for a few weeks now and am in desperate need of help. General info I am developing a flutter app that requires…
3
votes
0 answers

Error code 12 in Biometric Authentication - device have only FaceID

I am doing login validation with Biometric prompt dependency:usedandroidx.biometric:biometric-ktx:1.2.0-alpha04 checked the hardware supported or not using this code fun isBiometricHardWareAvailable(con: Context): Boolean { var result = false val…
1 2
3
14 15