cordova 热更新

1.根目录.chcpenv

{
  "content_url": "http://106.13.216.173:5636/hotpush",
  "config_url": "http://106.13.216.173:5636/hotpush/chcp.json"
}

2.根目录.cordova-hcp.json

{
  "name": "alan",
  "ios_identifier": "",
  "android_identifier": "",
  "update": "resume",
  "content_url": "http://106.13.216.173:5636/hotpush"
}

3.根目录.config.xml

<chcp>
    <auto-download enabled="true" />
    <auto-install enabled="true" />
    <config-file url="http://106.13.216.173:5636/hotpush/chcp.json" />
    <native-interface version="1" />
</chcp>

4.命令

cordova-hcp build

 

上一篇:Cordova安装


下一篇:远程开发调试CentOS7.6 + Ionic + Cordova + Android