Android biometrics api isn't using face recognition to unlock

Viewed 2658

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 authenticate my app. I have enabled face recognition from settings.

I understand that in the alpha release they have added "Weak" and "Strong" in "setAllowedAuthenticators" method but neither of the options shows me face recognition.

If face recognition is always weak then when I set :

setAllowedAuthenticators(BIOMETRIC_WEAK)

It should use face recognition but it never does.

I have also tested this on Samsung Note 10-lite

1 Answers

For face feature to appear in Biometric System Authentication prompt, individual device face sensors should be compatible with Android Biometric stack.

With setAllowedAuthenticators(BIOMETRIC_WEAK), we are only informing Android system that we want those Biometric features(face, fingerprint, iris) in the Biometric System prompt, which are configured in device settings by App user and also qualify the BIOMETRIC_WEAK requirements,

More info on the BIOMETRIC_WEAK and BIOMETRIC_STRONG can be found in below link. https://source.android.com/compatibility/android-cdd#7_3_10_biometric_sensors

Related