Hello everybody.
I’m using
import { Deploy } from ‘cordova-plugin-ionic/dist/ngx’;
to deploy live update to my app.
Everything works fine, but I would like to show a progress indicator while the app is updating.
I’m using the following function:
async UpdateApp() {
this.loading.presentLoading('Updating to last version');
const update = await this.deploy.checkForUpdate();
if (update.available) {
await this.deploy.downloadUpdate((progress) => {
console.log(progress);
})
await this.deploy.extractUpdate((progress) => {
console.log(progress);
})
await this.deploy.reloadApp();
}
}
but it looks like the downloadUpdate and extractUpdate doesn’t give usefull information for creating a user-readable progress indicator.
Am I missing something?
Thanks
1 post - 1 participant