App Update


This plugin does self-update for android

Ionic 应用更新 App Update插件的安装(Installation)

ionic cordova plugin add cordova-plugin-app-update npm install @ionic-native/app-update

Ionic 应用更新 App Update插件支持的平台(Supported Platforms)

  • Android

Ionic 应用更新 App Update插件的用法(Usage)

You should first host an XML file on your server with the following data in it:

    <name>APK Namename>

Then use the following code:

import { AppUpdate } from '@ionic-native/app-update';

constructor(private appUpdate: AppUpdate) {

   const updateUrl = '';
   this.appUpdate.checkAppUpdate(updateUrl).then(() => { console.log('Update available') });


The plugin will compare the app version and update it automatically if the API has a newer version to install.