Forum Xamarin Xamarin.Android

Xamarin fingerprint nuget fails for non-fingerprint sensor devices?

I am trying to integrate fingerprint authentication using Xamarin.Android.
Since i need to support old 4.4 and above i am using https://github.com/smstuebe/xamarin-fingerprint to achieve it .

public async Task FingerPrintAuthentication()
{
var availability = await CrossFingerprint.Current.GetAvailabilityAsync();

    } 

But if the device doesn't have any sensor it is throwing exception rather than returning enum with NoSensor as Its's value.
Exception Logs.

[SamsungFingerprintImplementation] com.samsung.android.sdk.SsdkUnsupportedException: This device does not provide FingerprintService.
[SamsungFingerprintImplementation] at com.samsung.android.sdk.pass.Spass.initialize(Unknown Source)

Sign In or Register to comment.