Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

Installation progress event? #151

Closed
JWMB opened this issue May 9, 2016 · 3 comments
Closed

Installation progress event? #151

JWMB opened this issue May 9, 2016 · 3 comments

Comments

@JWMB
Copy link

JWMB commented May 9, 2016

Hi, is there an event that provides information on the file copy progress? Searched the source but couldn't find any. Thanks!

@nikDemyankov
Copy link
Member

Hi,

No, sorry, at the moment there is no such event or a callback.

@luisaccedo
Copy link

I wanted the same thing, and I found an aproach that might work:

on config.xml

<chcp> <config-file url="http://192.168.1.220/chcp.json"/> <native-interface version="1" /> <auto-download enabled="false" /> <auto-install enabled="false" /> </chcp>

on my app initialization script:

document.addEventListener("deviceready", function(){ chcp.fetchUpdate(function(error, data) { if (error) { console.log('Failed to load the update with error code: ' + error.code); console.log(error.description); angular.bootstrap(document, [appConfig.appName]); return; } console.log('Update is loaded, running the installation'); chcp.installUpdate(function(error) { if (error) { console.log('Failed to install the update with error code: ' + error.code); console.log(error.description); } else { console.log('Update installed!'); var re = new RegExp("^(.*?)\d\d\d\d"); var parsedPath = $window.location.href.match(re); window.location = parsedPath + data.release + 'www/index.html'; } }); }); }, false);

@nordnet-deprecation-bot
Copy link
Contributor

👋 Hi! Thank you for your interest in this repo.

😢 We are not using nordnet/cordova-hot-code-push anymore, and we lack the manpower and the experience needed to maintain it. We are aware of the inconveniece that this may cause you. Feel free to use it as is, or create your own fork.

🔒 This will now be closed & locked.

ℹ️ Please see #371 for more information.

@nordnet nordnet locked and limited conversation to collaborators Sep 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants