vaenow / cordova-plugin-app-update

App updater for Cordova/PhoneGap
MIT License
299 stars 146 forks source link

Application crash when auto update function hit #114

Closed Hardik21 closed 5 years ago

Hardik21 commented 6 years ago

This is my code:

ionViewDidLoad() { const updateUrl = 'http://lifelinetech.org/update.xml'; this.appUpdate.checkAppUpdate(updateUrl).then(() => { alert("call for change version"); }); }

ZeroQool007 commented 5 years ago

You've to change your xml. Dont use 0.0.4, use 4

vaydich commented 5 years ago

Hi!

I have the same behaviour.

My code:

const updateUrl = 'http://192.168.0.4:8102/update.xml';
    this._appUpdate.checkAppUpdate(updateUrl).then(() => {
      alert('Update available');
      console.warn('Update available');
    });
<update>
<version>2</version>
<name>app-debug</name>
<url>http://192.168.0.4:8102/app-debug.apk</url>
</update>

but when i start apk it crashes