FingerprintManager#isHardwareDetected() and FingerprintManager#hasEnrolledFingerprints(). Both of which are deprecated in Android 28. What else could I use in order to see if fingerprints are enrolled in this version? I saw this as an option.
KeyguardManager keyguardManager =
(KeyguardManager) getSystemService(KEYGUARD_SERVICE);
if that option is ok, how to translate it into xamarin forms for example ()
FingerprintManagerCompat fpm= FingerprintManagerCompat.From(CrossCurrentActivity.Current.Activity);
To this :
You can use
Plugin.Fingerprint
to acheved it in android 9.0. https://www.nuget.org/packages/Plugin.Fingerprint/There is my GIF of demo(If you first run this project, please make sure you have created fingerprint in you device).
Because forms just have one activity, If pushed the auth page, we should achieved
ActivityLifecycleCallbacks
andFingerprintDialogFragment
Here is code of MainApplication , it need the
Plugin.CurrentActivity
pluginHere is code of MyCustomDialogFragment
There is my code of my demo.
https://github.com/851265601/FrigerPrintDemo