react-native-fingerprint-scanner icon indicating copy to clipboard operation
react-native-fingerprint-scanner copied to clipboard

"FingerprintScannerNotEnrolled" error always show although i rolled finger print on Android

Open tackanoway35 opened this issue 3 years ago • 2 comments

Step 1. Authenticate -> Show "FingerprintScannerNotEnrolled" message Step 2. Go to setting and roll finger print (Don't kill app) Step 3. Comeback my app and authenticate. "FingerprintScannerNotEnrolled" error always show although i rolled finger print on Android Version react-native: 0.59 react-native-fingerprint-scanner: "2.6.2" How to fix this bug? Thanks u

tackanoway35 avatar Dec 01 '21 15:12 tackanoway35

Then i kill and reopen app. "FingerprintScannerNotEnrolled" message is disappeared.

tackanoway35 avatar Dec 01 '21 15:12 tackanoway35

I wonder if it has to do with this: https://github.com/hieuvp/react-native-fingerprint-scanner/blob/31f160f6437415258a6204ca8481612b314e41f8/android/src/main/java/com/hieuvp/fingerprint/ReactNativeFingerprintScannerModule.java#L98-L101

The way all the biometric stuff works changed with android API28 (Android P) and you don't specify what device under test is running, this guess is for >= 28

I could not find any relevant issues on stackoverflow which is usually an indicator that platform API usage is incorrect, stated differently - the code here may not be 100%, you might be on to something

mikehardy avatar Dec 01 '21 16:12 mikehardy