【问题标题】:MS AppCenter CodePush not updatingMS AppCenter CodePush 未更新
【发布时间】:2020-10-22 00:48:56
【问题描述】:

我正在尝试使用 MS AppCenter CodePush 将更新推送到 Android 应用程序。我能够将更新推送到 CodePush 服务器,并且该应用可以看到有更新,但是它永远不会决定下载并安装更新。设备上安装的应用程序的当前版本是 4.2.4。如果我推送更新并定位 ^4.2.3 或 4.2.4 或 4.1 - 4.4 或 * 我会在控制台中看到以下内容:

[CodePush] Checking for update.
[CodePush] App is up to date.

但是,如果我的目标是 4.2.5 或更高版本,它会显示:

[CodePush] Checking for update.
[CodePush] An update is available, but it is targeting a newer binary version than you are currently running.
[CodePush] App is upp to date.

似乎我无法告诉它有一个适用于已安装内容的新版本。我已经禁用了所有过去的版本(其中大部分也从未工作过),以防它们干扰。

解决此问题的任何提示?

【问题讨论】:

    标签: cordova cordova-plugins code-push


    【解决方案1】:

    问题出在新版本上。在我的项目中,我从未将 package.json 中的版本号从默认的 1.0.0 更改。我只是在 config.xml 文件中增加版本。文档说重要的是 config.xml 版本,但似乎他们都这样做。

    【讨论】:

    • 我做了,但没有任何改变
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多