我已经将我们的应用程序从过时的FingerprintManager迁移到了Biometric API。这个应用程序目前有一个自定义片段,它的行为实际上就像新的BiometricPrompt。我想继续使用这个自定义页面,这样就不会显示BiometricPrompt。问题是激活身份验证的方法是创建此提示并显示它。
biometricPrompt.authenticate(BiometricPrompt.PromptInfo.Builder()
.setTitle("Title text goes here")
.setSubtitle("Subtitle goes here")
.setDescription("This is the description")
.setNegativeButtonText("Cancel")
.build()
)如何避免显示BiometricPrompt而只激活身份验证?
PS:在我的OnePlus6T上,提示符实际上没有显示,因为设备的屏幕指纹扫描,但在所有其他人的提示符是显示的。
发布于 2019-10-11 17:31:52
这不可能。BiometricPrompt是新的指纹统一请求对话框
请参阅Android 9 ChangeLog https://developer.android.com/about/versions/pie/android-9.0?source=post_page-----d4fc85e55608----------------------#biometric-auth
For OnePlus是一个错误https://forums.oneplus.com/threads/problems-about-oneplus-6t-fingerprint-api.944959/
https://stackoverflow.com/questions/58325025
复制相似问题