infinum / Android-Goldfinger

Android library to simplify Biometric authentication implementation.
Apache License 2.0
653 stars 73 forks source link

Deleting all fingerprints from device #45

Closed mariciv closed 5 years ago

mariciv commented 5 years ago

Most devices invalidate fingerprint and we should get an error next time we try to start fingerprint reading. But on some device like LG G5 and OnePlus2 this doesn't happen. Instead we get onReady callback even though we definitely can't get a successful auth result cause there is no fingerprint to match.

A quick fix in any project is to check if there are enrolled fingerprints before trying to start fingerprint reading but maybe we could push this inside the lib so we expose this error consistently.

domagojkorman commented 5 years ago

Agreed. We shall add the check before authentiocation in next release.

domagojkorman commented 5 years ago

Fixed in v1.2.0.

We check preconditions before starting the authentication and exception is thrown if user has no hardware or no enrolled fingerprints.

Closing issue.