Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Biometric -face login for android is not working #274

Open
ManojAhirwar opened this issue Jan 22, 2024 · 3 comments
Open

Biometric -face login for android is not working #274

ManojAhirwar opened this issue Jan 22, 2024 · 3 comments

Comments

@ManojAhirwar
Copy link

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
Copy link

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
Copy link

it's work !

@mostafahpater
Copy link

mostafahpater commented Jun 12, 2024

why it not working in all android phone ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants