Closed ruisilva450 closed 6 years ago
Hi @ruisilva450,
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.
As far as I know, UWP doesn't offer an API to specify the way of authentication :/
Do you know one?
Since you are checking for the availability maybe you can use the Enum from the result:
and return the equivalent from your Enum.
see: https://docs.microsoft.com/en-us/uwp/api/windows.security.credentials.ui.userconsentverifieravailability and https://docs.microsoft.com/en-us/windows/uwp/security/fingerprint-biometrics
This is what the plugin does. The problem is, that it just looks if any authentication is available. And you can't say "please check for fingerprint sensor".
Ok then. Your job here appears to be well done. Microsoft needs to do their part. Thanks
Hi, I wanted to try this plugin in a forms application that targets UWP. I'm checking the availability of the fingerprint sensor first before navigation for a screen to configure that association in my app. But on my Windows laptop that doesn't have the sensor, the plugin still says that it's available.
Steps to reproduce
Have a laptop, running in the app em debug, that doesn't have fingerprint sensor (but I have PIN configured for login)
At some point I'm asking the plugin for the availability of the sensor
await CrossFingerprint.Current.GetAvailabilityAsync(false)
This returns as result the enum "Available"
Expected behavior
Return the enum "NoSensor"
Actual behavior
Return the enum "Available"
Crashlog
Doesn't crash.
Configuration
Version of the Plugin: 1.4.5.0
Platform: Windows 10 version 1703 (15063.674)
Device: e.g. Toshiba Satellite Pro A30-C (U3E1)