hieuvp / react-native-fingerprint-scanner

Provide Fingerprint, Touch ID, and Face ID Scanner for React Native (Compatible with both Android and iOS)
https://www.npmjs.com/package/react-native-fingerprint-scanner
875 stars 301 forks source link

Distinguish Samsung Galaxy S10 face authentication #80

Open phillbaker opened 5 years ago

phillbaker commented 5 years ago

There are new class & methods in the android SDK to support different biometric types: https://developer.android.com/reference/android/hardware/biometrics/BiometricManager.html.

It seems backwards compatible with the fingerprint authentication, but it'd be good to distinguish this from fingerprint authentication in https://github.com/hieuvp/react-native-fingerprint-scanner#types-of-biometrics

phillbaker commented 5 years ago

This forum link says that it's not currently available in the samsung pass sdk which is what the upstream module uses: https://developer.samsung.com/forum/thread/how-to-use-iris-face-recognition-for-my-app/201/357689?boardName=SDK&startId=zzzzz~&searchSubId=0000000030

Also possibly relevant: https://stackoverflow.com/questions/54598752/samsung-devices-os-9-0-throw-android-security-keystoreexception-key-user-not-a

This also is relevant: https://github.com/ajalt/reprint/issues/45