HarmonyOS 调用版本检测updateManager.checkAppUpdate错误码含义?

调用版本检测updateManager.checkAppUpdate接口,返回的数据如下:

checkAppUpdate business error:{"code":100940005} 

代码如下:

updateManager.checkAppUpdate(context)
  .then((checkResult: updateManager.CheckUpdateResult) => {
    LogUtils.logII(TAG, 'checkAppUpdate checkResult updateAvailable:' + checkResult.updateAvailable);
    if (checkResult.updateAvailable == 1) {
      // 有新版本
      this.showUpdateDialog(context);
    } else {
      if (showHintDialog) {
        showHintDialog();
      }
    }
  }).catch((error: BusinessError) => {
  LogUtils.logII(TAG, 'checkAppUpdate business error:' + JSON.stringify(error));
});

官网找的的错误码表如下:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/store-error-code-V5最多只到10093开头,想知道这个错误码什么意思?

阅读 607
1 个回答
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进