使用3D人脸认证功能报错"errorCode=1"(HMS Core FIDO错误)
Error "errorCode=1" (HMS Core FIDO error) is reported when the 3D facial authentication function is used
在运行EMUI 10.0设备上使用3D人脸认证功能报如下错误:errorCode=1
// Cancellation Signal
CancellationSignal cancellationSignal = new CancellationSignal();
FaceManager faceManager = new FaceManager(this);
// Checks whether 3D facial authentication can be used.
int errorCode = faceManager.canAuth();
if (errorCode != 0) {
resultTextView.setText("");
showResult("Can not authenticate. errorCode=" + errorCode);
return;
}
操作设备:P40 Pro或荣耀30 Pro
3D人脸认证功能取决于设备硬件。目前只能在Mate 20 Pro和Mate 30 Pro设备上使用。
您好,虽然上面的答案是正确的,但我强烈建议您查看下面的错误列表,并亲自查看此代码提供的确切原因。
https://developer.huawei.com/consumer/en/doc/HMSCore-References-V5/facemanager_x-0000001050418949-V5
您的错误的确切解释是:
public static final int FACE_ERROR_HW_UNAVAILABLE
Return BioAuthnCallback 的 onAuthError 方法中 errorCode 参数的值] 在调用 auth 方法之后; return canAuth API 的值:1
没有可用的身份验证硬件。稍后再试。
在运行EMUI 10.0设备上使用3D人脸认证功能报如下错误:errorCode=1
// Cancellation Signal
CancellationSignal cancellationSignal = new CancellationSignal();
FaceManager faceManager = new FaceManager(this);
// Checks whether 3D facial authentication can be used.
int errorCode = faceManager.canAuth();
if (errorCode != 0) {
resultTextView.setText("");
showResult("Can not authenticate. errorCode=" + errorCode);
return;
}
操作设备:P40 Pro或荣耀30 Pro
3D人脸认证功能取决于设备硬件。目前只能在Mate 20 Pro和Mate 30 Pro设备上使用。
您好,虽然上面的答案是正确的,但我强烈建议您查看下面的错误列表,并亲自查看此代码提供的确切原因。
https://developer.huawei.com/consumer/en/doc/HMSCore-References-V5/facemanager_x-0000001050418949-V5
您的错误的确切解释是:
public static final int FACE_ERROR_HW_UNAVAILABLE
Return BioAuthnCallback 的 onAuthError 方法中 errorCode 参数的值] 在调用 auth 方法之后; return canAuth API 的值:1
没有可用的身份验证硬件。稍后再试。