Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48983

Ionic Deploy manually

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 48983

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>