Open plumberg opened 2 years ago
A link to our android code for checking available auth types
I think this thread may shed some light.
The face recognition from Samsung is using the front camera which is not considered a secure biometric. This is what the docs say:
Feature for getSystemAvailableFeatures and hasSystemFeature: The device has biometric hardware to perform face authentication.
... Like I said, Samsung is using the front camera for face recognition and therefore is not secure. This is why you have to specifically set it to BIOMETRIC_WEAK. ... However I'd advice not to use this as this is not secure at all! Always use strong biometrics unless you have a good reason to use this.
This explanation sounds plausible as, before it checks what kind of biometric auth methods are available, it checks first to see if there is a secure authentication method. When you add a fingerprint, it causes it to satisfy that check.
There are a couple of ways to go here:
Describe the bug Issue related to the Fingerprint library (https://github.com/codenameone/FingerprintScanner) When no fingerprint TouchID is added to the device, the
isFaceIDAvailable()
always returnsfalse
, even if it was added to the device in device settings. If TouchID was added to the device, then FaceID is available too.To Reproduce Add the following code sample:
Expected behavior The library must recognize when only Face recognition was added, and no fingerprint are stored on the device.
Smartphone (please complete the following information):