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 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] This device does not provide FingerprintService.
[SamsungFingerprintImplementation] at Source)

Sign In or Register to comment.