xamarin-fingerprint icon indicating copy to clipboard operation
xamarin-fingerprint copied to clipboard

If fingerprint isn't recognized AuthenticateAsync always returns FingerprintAuthenticationResultStatus.Canceled

Open wegascee opened this issue 5 years ago • 1 comments

This is my sample project: TestFingerprint.zip. Here I make multiple authentications, which everytime are failing. In the end I get as state "canceled". Imho "canceled" should only be returned if the user presses the cancel button.

Steps to reproduce

  1. Start Android app
  2. Take a finger, which isn't registered and try to authenticate
  3. Repeat until the dialog disappears
  4. Press the "Login with fingerprint" button to make another authentication
  5. Canceled is returned

Expected behavior

TooManyAttempts or Failed should be returned.

Actual behavior

Canceled is returned

Configuration

Version of the Plugin: 1.4.7

Platform: Android 7.1.1

Device: Samsung SM-T390

Xamarin: 4.9.0.753

Xamarin.Forms: 2.5.1.527436

Visual Studio: 14.0.25431.01 Update 3

Remarks

On iOS the behavior is that you first get TooManyAttempts and afterwards you get Unknown. If you are in "Unknown" you can't do any authentication anymore. Even an app restart doesn't help. Furthermore, the app seems to use some caching mechanism, because I added a fingerprint in the meantime, but the running app still returned "no fingerprint".

wegascee avatar Aug 08 '18 14:08 wegascee

Hi @wegascee,

I'm the friendly issue checker. Thanks for using the issue template :star2: I appreciate it very much. I'm sure, the maintainers of this repository will answer, soon.

smsissuechecker avatar Aug 08 '18 14:08 smsissuechecker