SelfLender / react-native-biometrics

React Native module for iOS and Android biometrics
MIT License
641 stars 217 forks source link

Biometric -face login for android is not working #274

Open ManojAhirwar opened 5 months ago

ManojAhirwar commented 5 months ago

Hi Team,

I have integrated this latest package in my RN project. Simple prompt for android Face biometric is not working even pop up dost not show anymore. I have tested in my android device SamsungS 20FE which have finger print + face scan logging. I have registered myself for both type biometric still login prompt coming for only finger print.

I have made some changes inside the file after that face id is working fine. node_modules/react-native-biometrics/android/src/main/java/com/rnbiometrics/ReactNativeBiometrics.java

I have made changes and converted as weak. private int getAllowedAuthenticators(boolean allowDeviceCredentials) { if (allowDeviceCredentials && !isCurrentSDK29OrEarlier()) { return BiometricManager.Authenticators.BIOMETRIC_WEAK | BiometricManager.Authenticators.DEVICE_CREDENTIAL; } return BiometricManager.Authenticators.BIOMETRIC_WEAK; }

Can you please make it available in next version.

besnellings commented 3 months ago

Hi Team,

I have integrated this latest package in my RN project. Simple prompt for android Face biometric is not working even pop up dost not show anymore. I have tested in my android device SamsungS 20FE which have finger print + face scan logging. I have registered myself for both type biometric still login prompt coming for only finger print.

I have made some changes inside the file after that face id is working fine. node_modules/react-native-biometrics/android/src/main/java/com/rnbiometrics/ReactNativeBiometrics.java

I have made changes and converted as weak. private int getAllowedAuthenticators(boolean allowDeviceCredentials) { if (allowDeviceCredentials && !isCurrentSDK29OrEarlier()) { return BiometricManager.Authenticators.BIOMETRIC_WEAK | BiometricManager.Authenticators.DEVICE_CREDENTIAL; } return BiometricManager.Authenticators.BIOMETRIC_WEAK; }

Can you please make it available in next version.

I'm having the same issue, and making these changes fixed it for me. Thank you!

klawijuice commented 4 weeks ago

it's work !

mostafahpater commented 2 weeks ago

why it not working in all android phone ?