flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
162.8k stars 26.78k forks source link

[local_auth] Get supported biometric authentication types for the device even if the method is not enrolled #149296

Open datngquoc opened 2 weeks ago

datngquoc commented 2 weeks ago

Use case

In my case, I want to alert User enroll their biometric on their devices, but I can't check which type of biometric that device supports if they haven't enrolled.

There is only 'getAvailableBiometric' method in this plugin.

Proposal

I hope you guys will provide a method that help us to get supported biometric of device. Thank you!

darshankawar commented 2 weeks ago

@datngquoc See https://pub.dev/packages/local_auth#device-capabilities and check if it helps in your case or not.