smstuebe / xamarin-fingerprint

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

Fingerprint.GetAvailabilityAsync returns NoFingerprint on Android Face authentication if there are no stored fingerprint #167

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.GetAvailabilityAsync ().

Expected behavior

The method returns NoFingerprint.

Actual behavior

the method should return Available.

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.

AngelAndresM commented 4 years ago

I have the same problem, any news on this subject ? it seems that there's no news since november 2019. :/

smstuebe commented 4 years ago

can you check 2.1.0? Should fix fallback. Not sure if it fixes the face unlock issue

movigos commented 4 years ago

What about Face recognition on Android platform? It doesn't work.

[ver 2.1.1]

nrb1238 commented 4 years ago

@movigos
Did you get any solution for Face Recognition on the Android platform?

atantasook commented 4 years ago

can you check 2.1.0? Should fix fallback. Not sure if it fixes the face unlock issue

I'm using version 2.1.1 and the problem still remains. It looks like I still need to have a registered fingerprint for Face authentication otherwise GetAvailability return NoFingerprint instead of returning Available.

nbuchert commented 1 year ago

This is still an issue on Android. If I enable fingerprint recognition, then it uses that, but if I remove the fingerprint and only have face recognition, then GetAvailability returns NoFingerprint. I could see that there is a PR for a "weak/strong" authentication, where the weak is using face recognition, but the PR is missing approval: https://github.com/smstuebe/xamarin-fingerprint/pull/232. I hope someone who has the rights to approve would do so as this would probably enable face recognition on Android.