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

IsAvailableAsync(true) returns false for Alternative Authentication in Android

Open lawsonc999 opened this issue 7 years ago • 11 comments

Steps to reproduce

  1. Added plugin to Forms and Client projects

  2. Enable Pattern for security password in Android device

  3. call await CrossFingerprint.Current.IsAvailableAsync(true)

Expected behavior

It should return true and able to check Pattern security to continue

Actual behavior

it returns false and not recognise there is a pattern security

Configuration

Version of the Plugin: 1.4.7

Platform: Android 7.1.1

Device: GIONEE F6L

lawsonc999 avatar Aug 17 '18 03:08 lawsonc999

Hi @bastianbecker21,

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 17 '18 03:08 smsissuechecker

Can you give me a short answer whether it's able to do or not?

lawsonc999 avatar Aug 17 '18 03:08 lawsonc999

@bastianbecker21 I'm on holliday ;) It will be possible in the future. There is a PR for it already ;)

smstuebe avatar Aug 18 '18 09:08 smstuebe

@smsissuechecker Yes. I was able to handle it independently with this. https://blog.xamarin.com/easily-authenticate-users-with-androids-confirm-credential/ But I want to handle all of it in one great package like this one, When can you exactly look at this bug?

lawsonc999 avatar Aug 18 '18 09:08 lawsonc999

It is not a bug. It is just not implemented, yet. I'm working on a major update that will include this feature and will switch to the new Android P Dialog etc.

smstuebe avatar Aug 18 '18 09:08 smstuebe

Hi When it will be implemented...?

sylendra7 avatar Oct 22 '18 18:10 sylendra7

Is there an update on this? I am looking for it to fall back to PIN, if fingerprint is not available.

sandman202 avatar May 28 '19 14:05 sandman202

is there any update on this? if this method doesn't work then doesn't it mean that the whole plugin is effectively redundant?

Ravi5ingh avatar Jul 16 '19 14:07 Ravi5ingh

protected override void OnCreate(Bundle savedInstanceState) {

        TabLayoutResource = Resource.Layout.Tabbar;
        ToolbarResource = Resource.Layout.Toolbar;

        base.OnCreate(savedInstanceState);

        CrossFingerprint.SetCurrentActivityResolver(() => CrossCurrentActivity.Current.Activity);
        //CrossFingerprint.SetCurrentActivityResolver(() => this);

private async void FingerPrintAuthentication(object sender, EventArgs e) { try { lblAuthenticationResult.Text = "Click on the button for FingerPrint Authentication."; lblAuthenticationResult.TextColor = Color.White;

            var ScanResult = await CrossFingerprint.Current.IsAvailableAsync(true);
            if (ScanResult)
            {
                var Auth = await CrossFingerprint.Current.AuthenticateAsync("Touch your finger on sensor to login.");

var ScanResult = await CrossFingerprint.Current.IsAvailableAsync(true); returning false. There have any solution for this?

RakeshRaviGovindhan avatar Sep 23 '19 12:09 RakeshRaviGovindhan

Still waiting on an update. It doesn't work for Android. Haven't checked iOS. It seems a little cumbersome to have to create my own check, when this plugin is supposed to handle it.

sandman202 avatar Mar 12 '20 12:03 sandman202

should be fixed. with 2.1.0. Have a look at the changelog. Please give feedback.

smstuebe avatar Mar 12 '20 23:03 smstuebe