Hot Code Push

Contents

HotCodePush plugin for Cordova that supports iOS and Android. This plugin allows you to keep your html, css and js files synced with your server.

https://github.com/nordnet/cordova-hot-code-push

Ionic 热更新Hot Code Push插件的安装(Installation)

ionic cordova plugin add cordova-hot-code-push npm install @ionic-native/hot-code-push

Ionic 热更新Hot Code Push插件支持的平台(Supported Platforms)

  • Android
  • iOS

Ionic 热更新Hot Code Push插件的用法(Usage)

import { HotCodePush } from '@ionic-native/hot-code-push';

constructor(private hotCodePush: HotCodePush) { }

...

hotCodePush.fetchUpdate(options).then(data => { console.log('Update available'); });