smstuebe / xamarin-fingerprint

Xamarin and MvvMCross plugin for authenticate a user via fingerprint sensor
Microsoft Public License
494 stars 118 forks source link

IsAvailableAsync(true) returns false for Alternative Authentication in Android #111

Open bastianbecker21 opened 6 years ago

bastianbecker21 commented 6 years ago

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

smsissuechecker commented 6 years ago

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.

bastianbecker21 commented 6 years ago

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

smstuebe commented 6 years ago

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

bastianbecker21 commented 6 years ago

@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?

smstuebe commented 6 years ago

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.

sylendra7 commented 5 years ago

Hi When it will be implemented...?

sandman202 commented 5 years ago

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

Ravi5ingh commented 5 years ago

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

RakeshRaviGovindhan commented 5 years ago

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?

sandman202 commented 4 years ago

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.

smstuebe commented 4 years ago

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