cordova-plugin-xupdate
v0.0.3
Published
Cordova plugin for [xuexiangjys/XUpdate](https://github.com/xuexiangjys/XUpdate)
Downloads
9
Readme
cordova-plugin-xupdate [WIP]
Cordova plugin for xuexiangjys/XUpdate
usage
cordova.plugins.xupdate.init(
{
baseUrl: 'http://<baseUrl>/',
isWifiOnly: false
},
function(res) {
console.log('XUpdate#init#success => ', res)
cordova.plugins.xupdate.updateApk(
{
checkVersionUrl: 'update/checkVersion',
downloadUrlPrefix: 'update/apk/'
},
function(res) {
console.log('XUpdate#updateApk#success => ', res)
},
function(e) {
console.log('XUpdate#updateApk#error => ', e)
}
)
},
function(e) {
console.log('XUpdate#init#error => ', e)
}
)
service & apk management
- https://github.com/xuexiangjys/XUpdateService
- https://github.com/xuexiangjys/xupdate-management