SelfLender / react-native-biometrics

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

Error displaying local biometric prompt on Sumsung #58

Closed Bardiamist closed 2 years ago

Bardiamist commented 4 years ago

Couple Samsung users have

Error displaying local biometric prompt: must have com.samsung.android.bio.face.permission.USE_FACE or android.permission.USE_BIOMETRIC permission.

That happens when in Preferred biometric is selected Face recignition.

Any ideas how to fix it?

Bardiamist commented 4 years ago

Seems answer here.

Currently, you can not use Face Biometric in your application to authenticate.

Update: These users can unlock other apps by fingerprint even if in system Preferred biometric is Face recognition.

Can we implement same way?

Bardiamist commented 4 years ago

Also Samsung (Galaxy S8) users have

Unable to pause activity {com.valr.app/com.valr.app.MainActivity}: java.lang.SecurityException: Must have com.samsung.android.bio.face.permission.USE_FACE or android.permission.USE_BIOMETRIC permission.

on home button press when Face recignition preferred.

acoutts commented 4 years ago

Make sure you're requesting those permissions it's saying it doesn't have.

https://facebook.github.io/react-native/docs/permissionsandroid