epicshaggy / capacitor-native-biometric

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

isAvailable should always report biometryType

eppleton opened this issue · comments

To check if biometry is available isAvailable() checks if context can evaluate the policy "deviceOwnerAuthenticationWithBiometrics". When the owner has disabled biometry for the app, this will return false.
As a result the biometry type is not checked in the current version, and "isAvailable()" will always report biometryType=0.

In my app it's a requirement to force users to enable biometric authentication, if hardware support is there. Therefore I need to know, if the device is capable of it.