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

Android device does not re-show fingerprint dialog after initial dismiss

Open ryanggrey opened this issue 3 years ago • 1 comments

Steps to reproduce

  1. User triggers fingerprint dialog from a button press. Handler looks something like the following:
private async Task ButtonHandler()
{
    var authenticationRequestConfiguration = new AuthenticationRequestConfiguration(title, reason)
    {
        AllowAlternativeAuthentication = false,
        CancelTitle = "cancelTitle",
        FallbackTitle = "fallbackTitle",
    };

    var result = await CrossFingerprint.Current.AuthenticateAsync(authenticationRequestConfiguration);

    // awaited code here is executed after user interacts with fingerprint dialog
    ...
    ...
}
  1. User dismisses the fingerprint dialog by pressing 'x' button

  2. User attempts 1. again

Expected behavior

UI: Fingerprint dialog is presented to the user. Code: AuthenticateAsync result is awaited until user interacts with the presented dialog.

Actual behavior

UI: Fingerprint dialog is not presented to the user. Code: AuthenticateAsync result is immediately returned with a Status of FingerprintAuthenticationResultStatus.Failed with ErrorMessage of “Fingerprint Operation Cancelled”.

Crashlog

No crash

Configuration

Version of the Plugin: Plugin.Fingerprint 2.1.2

Platform: Android 9 (API 28)

Device: Huawei Mate 20 Pro

Notes

  • This issue doesn't happen on other Android 9 devices (only Huawei Mate 20 Pro appears to show the issue).

ryanggrey avatar Nov 04 '20 13:11 ryanggrey

Hi @ryanggrey,

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 Nov 04 '20 13:11 smsissuechecker