SelfLender / react-native-biometrics

React Native module for iOS and Android biometrics
MIT License
664 stars 229 forks source link

Android face recognition detection issue #134

Open cretumarius opened 4 years ago

cretumarius commented 4 years ago

Hello, first of all thanks for this awesome package. I have a problem when just face recognition is enrolled on device. Basically when user has only fingerprint enrolled, the app detects and let user to configure, when both fingerprint and face recognition are enrolled, app detects user preference and depending on the biometric method selected user can configure biometric authentication. The problem is when just face recognition is enrolled. In this case the app doesn't detect biometrics and user can't configure.

Can someone explain why is this happening. Thanks in advance

vanditmehta commented 4 years ago

Any update on this issue?

JZorina commented 4 years ago

any update?

cretumarius commented 4 years ago

No updates from me.

aleccaputo commented 3 years ago

this has to do with the AndroidX.Biometrics library. Check this stackoverflow. https://stackoverflow.com/questions/63629458/face-authenticationusing-androidx-biometric-api-in-android The reason fingerprint works is because android considers it to be a strong authentication method. Face and Iris on the galaxy s8/s9 for example are considered "weak" and therefore android won't prompt.

Also: https://issuetracker.google.com/issues/147374428