我正在使用 Google 客户端调用 SafetyNet Api,但它没有响应正确的响应。
SafetyNet.SafetyNetApi.attest(mGoogleApiClient, generateNonce())
.setResultCallback(new ResultCallback<SafetyNetApi.AttestationResult>() {
@Override
public void onResult(SafetyNetApi.AttestationResult result) {
Status status = result.getStatus();
String data = decodeJws(result.getJwsResult());
if (status.isSuccess()) {
// Indicates communication with the service was successful.
// Use result.getJwsResult() to get the result data.
} else {
// An error occurred while communicating with the service.
}
}
});
我在结果方法中收到以下错误消息。
状态{statusCode=NETWORK_ERROR, resolution=null}
任何形式的帮助将不胜感激。