mjwheatley / cordova-plugin-android-fingerprint-auth

A cordova plugin for fingerprint authentication using the hardware fingerprint scanner on devices running Android 6+
Apache License 2.0
169 stars 131 forks source link

isAvailableSuccess response, what das it means? #142

Open WuglyakBolgoink opened 4 years ago

WuglyakBolgoink commented 4 years ago

Hallo @mjwheatley ,

can you please help to understand what I do:

is isAvailable the same as hasEnrolledFingerprints? or hasEnrolledFingerprints means, that fingerprint database was changed (added/removed fingers)? For Example is hasEnrolledFingerprints eq to window.plugins.touchid.didFingerprintDatabaseChange (https://github.com/EddyVerbruggen/cordova-plugin-touch-id#security)

mjwheatley commented 4 years ago

isAvailable means all prerequisites have been meet allowing use of the fingerprint sensor. If isAvailable is false then one of the other 2 provide additional info for different messaging. For instance if isAvailable is false and isHardwareDetected is false then the device does not have a scanner. If isAvailable is false isHardwareDetected is true and hasEnrolledFingerprints is false, means the device has a scanner but the device has no enrolled fingerprints so you would want to prompt the user to go enroll a fingerprint to use that feature. None of those have to do with the fingerprint db changing.

WuglyakBolgoink commented 4 years ago

Hallo @mjwheatley thank you!

is it possible to check on android devices if user create or remove old Fingerprint before show dialog? (https://stackoverflow.com/a/44926774)

mjwheatley commented 4 years ago

You can play around with the encrypt config option userAuthRequired. It changes the setting you referenced.