我正在我的应用程序中实施生物识别技术进行身份验证。我正在使用反应原生生物识别技术。每件事情都很好,只有一个卡住了。Face-id 不适用于 Android。我做了很多谷歌搜索,但无法找到满意的答案。甚至可以在Android中使用face-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')
}
})
Run Code Online (Sandbox Code Playgroud)
即使我在手机中使用 FaceId,这也总是返回我的 TouchId。提前感谢您的帮助。
我的 React Native 应用程序中的某些操作(导航到屏幕、打开视频播放器等)发生崩溃。我已在 android stdio 中记录了错误,如下所示:
A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x20 in tid 8890
(RenderThread), pid 8833
Run Code Online (Sandbox Code Playgroud)
通过 Android Manifest 中的以下设置解决了崩溃问题
android:hardwareAccelerated="false"
Run Code Online (Sandbox Code Playgroud)
但是在将 android:hardwareAccelerated 设置为 false 后,我的 React-native-video 播放器现在显示黑屏,我认为这不是解决它的最佳方法。
我不知道为什么我会遇到这个崩溃。我将不胜感激任何帮助。