smstuebe / xamarin-fingerprint

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

Fingerprint.AuthenticateAsync fails on Android Face authentication if there are no stored fingerprint #166

Open atantasook opened 4 years ago

atantasook commented 4 years ago

To help us fix your issue, please provide the information in the below template. If something causes a crash, provide as much information as you can gather. Just imagine: we do not know what you are doing!

Note: There is often little we can do without a minimal reproducible sample of the issue, so please provide that in a standalone git repository and link it here.

Steps to reproduce

  1. Use an Android device that supports both Face and Fingerprint Authentication. On the device, register your face and choose Face Recognition as the preferred biometric. Make sure that there are no fingerprints registered.

  2. Install v2.0 of Plugin-Fingerprint nuget package and all the dependencies into the appropriate projects in your Xamarin.Forms solution.

  3. In the appropriate code where you will be implementing face authentication, make a call to Fingerprint.AuthenticateAsync(whateverAuthRequestConfig) and authenticate with the face that is stored. Note that the result contains Authenticated=false.

Expected behavior

The result should contain Authenticated=true.

Actual behavior

The result contain Authenticated=false.

Crashlog

If something causes an exception paste full stack trace + Exception here

Configuration

Version of the Plugin: v2.0

Platform: Xamarin Forms v4.4, Android 9

Device: Samsung Galaxy S8 or any Android device that supports both Face and Fingerprint authentication.

smsissuechecker commented 4 years ago

Hi @atantasook,

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.

it11111111 commented 4 years ago

I am having a similar issue, the first time the app launches, the biometrics window will show up and when fingerprint is entered, the method returns false. However, if I tap on the biometrics button to launch the biometrics again, the result returns true.

movigos commented 4 years ago

It doesn't work

Version of the Plugin: v2.1.1 Platform: Xamarin Forms v4.5, Android 10 Device: Xiaomi mi 8