nordnet/cordova-hot-code-push

App fail to start when update installed on first run on android Error code -9

CjoyHome opened this issue · 1 comments

Problem:
After Android is installed, update and install the new version. Replace the new version successfully, first
open app, hot update is not executed, shut down for second more times before executing the hot update.

Steps to reproduce
1.Install app v1.0.0 (No hotupdate resources);
2.Update app from store and launch V1.0.1(Have hotupdate resources);
3.Hot update does not execute
But:
4.close app(V1.0.1 Have hotupdate resources)
5.Reopen the app,Successful execution of hotupdate(V1.0.1 Have hotupdate resources)

ERRROR:

chcp.fetchUpdate((error, data)=> {
        alert(JSON.stringify(error));
        if (!error) {

error :
code: -9
description: Failed to load current application config

System info
@ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0
cordova (Cordova CLI) : 7.1.0
@ionic/app-scripts : 3.1.4
Cordova Platforms : android 6.3.0
Ionic Framework : ionic-angular 3.9.2
Android SDK Tools : 25.2.5
Node : v6.11.3
Plugins
com.plugin.imei 0.0.1 "IMEI"
com.woodstream.cordova.fix.blackscreen 0.0.1 "cordova-fix-blackscreen"
cordova-clipboard 1.1.0 "Clipboard"
cordova-hot-code-push-plugin 1.5.3 "Hot Code Push Plugin"
cordova-plugin-activity 0.0.1 "Activity"
cordova-plugin-android-permissions 1.0.0 "Permissions"
cordova-plugin-app-launcher 0.4.0 "Launcher"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-appavailability 0.4.2 "AppAvailability"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-console 1.0.5 "Console"
cordova-plugin-device 2.0.1 "Device"
cordova-plugin-file 4.3.3 "File"
cordova-plugin-file-opener2 2.0.19 "File Opener2"
cordova-plugin-file-transfer 1.6.3 "File Transfer"
cordova-plugin-filepath 1.0.2 "FilePath"
cordova-plugin-inappbrowser 2.0.2 "InAppBrowser"
cordova-plugin-network-information 1.3.4 "Network Information"
cordova-plugin-screen-orientation 3.0.1 "Screen Orientation"
cordova-plugin-splashscreen 4.0.3 "Splashscreen"
cordova-plugin-statusbar 2.2.2 "StatusBar"
cordova-plugin-whitelist 1.3.1 "Whitelist"
cordova-plugin-x-toast 2.6.0 "Toast"
es6-promise-plugin 4.2.2 "Promise"
ionic-plugin-keyboard 2.2.1 "Keyboard"
org.cjoy.androidchannel 1.0.0 "androidchannel"
org.demo.channel 0.0.1 "ReadChannel"

What can i do? Thank...