0

Ionic アプリ ( https://github.com/Microsoft/cordova-plugin-code-push )で Microsoft Code Push サービスに Cordova プラグインを使用しています。

現在、Android アプリ [ ionic build android] をビルドし、その更新を code-push [ code-push release-cordova ionic-atslogin-android -m android] にプッシュしてから、codepush 同期が組み込まれたアプリを使用しています。アップデートが認識され、ダウンロードされ、インストールが試行されますが失敗します。トラブルシューティング/修正する方法はありますか?

11-14 10:25:32.684  4401  4401 I chromium: [INFO:CONSOLE(36)] "[CodePush] Package download success: {"deploymentKey":"KEY-HERE","description":"","label":"v8","appVersion":"0.0.1","isMandatory":true,"packageHash":"9bf0fcb79157619cf1eded10c3de186a7aeb2f4b02e96ef094886f429cdc0ef4","isFirstRun":false,"failedInstall":false,"localPath":"cdvfile://localhost/files/codepush/download/update.zip"}", source: file:///android_asset/www/plugins/cordova-plugin-code-push/bin/www/codePushUtil.js (36)
11-14 10:25:32.685  4401  4401 I chromium: [INFO:CONSOLE(82045)] "8", source: file:///android_asset/www/build/main.js (82045)
11-14 10:25:32.686  4401  4401 I chromium: [INFO:CONSOLE(36)] "[CodePush] Installing update", source: file:///android_asset/www/plugins/cordova-plugin-code-push/bin/www/codePushUtil.js (36)
11-14 10:25:33.134  4401  4401 I chromium: [INFO:CONSOLE(40)] "[CodePush]  Cannot perform diff-update.", source: file:///android_asset/www/plugins/cordova-plugin-code-push/bin/www/codePushUtil.js (40)
11-14 10:25:33.134  4401  4401 I chromium: [INFO:CONSOLE(40)] "[CodePush] An error occurred during sync.", source: file:///android_asset/www/plugins/cordova-plugin-code-push/bin/www/codePushUtil.js (40)
11-14 10:25:33.134  4401  4401 I chromium: [INFO:CONSOLE(82045)] "3", source: file:///android_asset/www/build/main.js (82045)

コード プッシュ デバッグから:

>code-push debug android
Listening for android debug logs (Press CTRL+C to exit)
[10:48:26] Package download success: {"deploymentKey":"KEY-HERE","description":"","label":"v8","appVersion":"0.0.1","isMandatory":true,"packageHash":"9bf0fcb79157619cf1eded10c3de186a7aeb2f4b02e96ef094886f429cdc0ef4","isFirstRun":false,"failedInstall":false,"localPath":"cdvfile://localhost/files/codepush/download/update.zip"}
[10:48:26] Package download success: {"deploymentKey":"KEY-HERE","description":"","label":"v8","appVersion":"0.0.1","isMandatory":true,"packageHash":"9bf0fcb79157619cf1eded10c3de186a7aeb2f4b02e96ef094886f429cdc0ef4","isFirstRun":false,"failedInstall":false,"localPath":"cdvfile://localhost/files/codepush/download/update.zip"}
[10:48:26] Installing update
[10:48:26] Installing update
[10:48:26]  Cannot perform diff-update.
[10:48:26]  Cannot perform diff-update.
[10:48:26] An error occurred during sync.
[10:48:26] An error occurred during sync.
4

1 に答える 1

0

これは、Ionic 2 経由で同期を使用していたことが原因だと思います。この同期ロジックは機能しているようです。

const downloadProgress = (progress) => { console.log(`Downloaded ${progress.receivedBytes} of ${progress.totalBytes}`); }
CodePush.sync({updateDialog: true, installMode:InstallMode.IMMEDIATE, mandatoryInstallMode: InstallMode.IMMEDIATE}, downloadProgress).subscribe((syncStatus) => console.log(syncStatus));
于 2016-11-14T17:33:34.170 に答える