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

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

Open atantasook opened this issue 4 years ago • 7 comments

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.

atantasook avatar Mar 06 '20 17:03 atantasook

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.

smsissuechecker avatar Mar 06 '20 17:03 smsissuechecker

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

AngelAndresM avatar Mar 10 '20 02:03 AngelAndresM

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

smstuebe avatar Mar 13 '20 00:03 smstuebe

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

[ver 2.1.1]

movigos avatar Mar 13 '20 01:03 movigos

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

nrb1238 avatar Apr 29 '20 12:04 nrb1238

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.

atantasook avatar May 13 '20 19:05 atantasook

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.

nbuchert avatar Mar 13 '23 15:03 nbuchert