我正在我的应用程序中实施生物识别进行身份验证。我正在使用react-native biometrics进行此操作。一切都很好,只有一个卡住的问题。在Android中,面容ID无法正常工作。我进行了大量搜索,但无法找到令人满意的答案。在Android中使用面容ID是否可行?
Biometrics.isSensorAvailable()
.then((biometryType) => {
if (biometryType === Biometrics.TouchID) {
console.log('TouchID is supported')
} else if (biometryType === Biometrics.FaceID) {
console.log('FaceID is supported')
} else {
console.log('Biometrics not supported')
}
})
即使我在手机上使用FaceId,它始终返回TouchId。先行致谢。
npm install face-recognition-react-native --save
命令吗? - Shreeya Chhatrala