-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hotcodepush app on Ionic 4 fails to load the updates #25
Comments
Check the Be aware that this cordova plugin is no longer supported: |
Though the chcp.manifest has got the list of all build files, only 5 or 6 files get downloaded each time, any clue on it |
One last thing I would check is if the |
Ya that explains, so Only If the hash file changes in chp.manifest, the plugin downloads, Correct me if my understanding is wrong or how to address it as when launched from external location post update I get all 404 errors 2020-01-07 06:28:49.046 27495-27610/io.ionic.starter D/CHCP: Loading file: http:///updates/cordova_plugins.js initializeApp() { fetchUpdate() {
} |
I have no clue. Very strange that the url changes. I used this plugin for about 2 years before they deprecated it and I removed it from my application. My code looked very similar. The only difference, in my application I did not call fetchUpdate() {
const options = {
'config-file': ENV.UPDATE_URL
};
chcp.fetchUpdate(this.updateCallback.bind(this), options);
}
updateCallback(error, data) {
if (!error) {
chcp.installUpdate(error => {
if (error) {
console.log(error);
}
});
}
} |
I don't use hot updates anymore. I switched to Capacitor and I didn't find a self hosted solution that works with Capacitor. For Cordova application I would check out Microsoft's CodePush. And this looks interesting: IonPush |
Ya agree, Microsoft Code Push works absolutely fine, but im trying to work around without Microsoft. But with upgrading of Ionic 4 even similar issue was reported in the Microsoft code push and was later fixed. |
I see, there was a problem. Too bad that they abandoned the cordova-hot-code-push project. Would be great to have a self-hosted solution. |
Post placing the updated build in the remote url and relaunching of app, blanks out
The text was updated successfully, but these errors were encountered: