我们可以在 Android 设备的 React Native 中获得 face-id 吗? [英] Can we get face-id in react native for Android devices?

查看:61
本文介绍了我们可以在 Android 设备的 React Native 中获得 face-id 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用中实施了生物识别技术以进行身份​​验证.我正在使用反应原生生物识别技术.每件事情都很好,只有一个卡住了.Face-id 不适用于 Android.我做了很多谷歌搜索,但无法找到一些满意的答案.甚至可以在Android中使用face-id吗?

I was implementing biometrics in my app for authentication. I am using react-native biometrics for it. Every things working good just one stucked. Face-id is not working in Android. I did a lot of googling but unable to find some satisfactory answer. Is it even possible to use face-id in Android?

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.提前感谢您的帮助.

This always return me TouchId even if I am using FaceId in my phone. Thank for help in advance.

推荐答案

我认为这是因为 Face-Id 和 Touch-Id 仅适用于 iOS.并且您似乎仍然让 Touch-Id 工作,因为 android 上的生物识别默认为您用于锁定屏幕的内容(有时还取决于您的设备制造商)我从 这里

I think this is because Face-Id and Touch-Id are iOS only. and you still seem to get Touch-Id working as Biometrics on android defaults to what you are using for your lock screen (sometimes it also depends on your device manufacturer) I got this info from here

这篇关于我们可以在 Android 设备的 React Native 中获得 face-id 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆