Open ExLuzZziVo opened 3 months ago
Sure I will keep this in mind for the future
@ExLuzZziVo Quick question why don't you do something to like:
var biometric = BiometricAuthenticationService.Default;
var enrolledTypes = await biometric.GetEnrolledBiometricTypesAsync();
if(enrolledTypes != BiometricType.None)
That is the same as what you are requesting...
@ExLuzZziVo Do you have any updates yet?
@FreakyAli, Sorry for such a late reply. If I use the GetEnrolledBiometricTypesAsync()
method on the device that doesn't have the fingerprint sensor, it will return the empty collection that doesn't contain the BiometricType.None
enum value
@ExLuzZziVo try with the latest pre-release you should be able to do it!
@FreakyAli On the latest pre-release version it still returns the empty collection. Also I think this collection should be immutable, like Array.
Hi, Can you please add something like
Task<bool> IsAvailableAsync
method to theIBiometric
interface to check the availability of biometric auth? It is useful for some android devices that doesn't have the fingerprint sensor or the biometric unlock is not set. Currently I check it like this: