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
871 stars 296 forks source link

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

Open tackanoway35 opened 2 years ago

tackanoway35 commented 2 years ago

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 commented 2 years ago

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

mikehardy commented 2 years ago

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