1 year ago

#321995

test-img

LMaker

Biometric API - How to force to use Face authentication?

I want to force a device with face id, to use Face authentication to login in my application, using Biometric API.

I'm using BIOMETRIC_WEAK but, its always asking for fingerprint instead face id.

 BiometricPrompt.PromptInfo.Builder().apply {
        setAllowedAuthenticators(BiometricManager.Authenticators.BIOMETRIC_WEAK)
        setTitle(activity.getString(title))
        setDescription(activity.getString(description))
        setConfirmationRequired(true)
        setNegativeButtonText(activity.getString(cancelTitle))
    }.build()

Looking for which devices has BIOMETRIC_STRONG (Class 3), I have found only Pixel 4.

So people with Samsumgs and whatever cannot use Face authentication inside apps?

android

android-biometric-prompt

android-biometric

0 Answers

Your Answer

Accepted video resources