smstuebe / xamarin-fingerprint

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

[Question] Is there a method to check current device Authentication method. #173

Open pmahend1 opened 4 years ago

pmahend1 commented 4 years ago

Steps to reproduce

N/A This is a question

Expected behavior

Need to know if device has both fingerprint or face id or both

var isAvailable = await CrossFingerprint.Current.GetAvailabilityAsync();
if(isAvailable == FingerprintAvailability.Available)
{
    //then is it face id or finger print 
 }

Actual behavior

Only get Available or NoFingerPrint from enum

I want to distinguish if the device doesnt have one of the fingerprint or face id logins

Based on that I want to set Button

Crashlog

N/A

Configuration

Version of the Plugin: 2.1

Platform: e.g. iOS and Android both checking on iPad which has only finger print and iPhone simulator with face id Android phone with both finger print and face id Android emulator with only fingerprint

Compiled with Q10 and iOS 13.4

Device: Physical Android Moto G7 Plus with Q(10) -API 29 Physical iPad Mini 5th Gen with iOS 12.2 Emulator Pixel 2 on Q(10) -API 29 Emulator iPhone 11 iOS 13.4

smsissuechecker commented 4 years ago

Hi @pmahend1,

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.