1

I am looking for implementing Fingerprint authentication on an Android app, using BiometricPrompt, but I don't seem to be able to choose only Fingerprint. I don't want my users to be able to authenticate with Iris or Face, I just want to allow Fingerprint. Do you know if it is possible?

Thank you!

4

1 回答 1

0

正如我在其他地方解释的那样:有些设备只有一种外形,有些有多种外形。您的应用最终使用哪种外形并不取决于您。这取决于 OEM 实施。正如这篇博文中所解释的,外形尺寸是还是并不取决于您的代码——OEM 决定。但是,您可以通过在调用时指定 a来请求设备对您的应用程序使用身份验证。CryptoObjectauthenticate()

碰巧的是,目前大多数具有多种外形尺寸的设备都将指纹作为其强大的生物识别技术。CryptoObject因此,在您调用时指定 aauthenticate()可能会给您想要的东西。

于 2020-01-07T22:45:01.540 回答