
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
cordova-plugin-check-app-update
Advanced tools

App updater for Cordova/PhoneGap
Try it yourself:
Just clone and install this demo. cordova-plugin-app-update-DEMO :tada:
Star
if it is necessary. :+1:
"cordova-android": "6.3.0"
cordova plugin add cordova-plugin-app-update --save
var updateUrl = "http://192.168.0.1/version.xml";
window.AppUpdate.checkAppUpdate(onSuccess, onFail, updateUrl);
var appUpdate = cordova.require('cordova-plugin-app-update.AppUpdate');
var updateUrl = "http://192.168.0.1/version.xml";
appUpdate.checkAppUpdate(onSuccess, onFail, updateUrl);
appUpdate.checkAppUpdate(onSuccess, onFail, updateUrl, {
'authType' : 'basic',
'username' : 'test',
'password' : 'test'
})
appUpdate.checkAppUpdate(onSuccess, onFail, updateUrl, {
'skipPromptDialog' : true,
'skipProgressDialog' : true
})
You can simply get the versionCode from typing those code in Console
var versionCode = AppVersion.build
console.log(versionCode) // 302048
versionName | versionCode |
---|---|
0.0.1 | 18 |
0.3.4 | 3048 |
3.2.4 | 302048 |
12.234.221 | 1436218 |
<update>
<version>302048</version>
<name>name</name>
<url>http://192.168.0.1/android.apk</url>
</update>
checkAppUpdate
code /**
* 对比版本号
*/
int VERSION_NEED_UPDATE = 201; //检查到需要更新; need update
int VERSION_UP_TO_UPDATE = 202; //软件是不需要更新;version up to date
int VERSION_UPDATING = 203; //软件正在更新;version is updating
/**
* 版本解析错误
*/
int VERSION_RESOLVE_FAIL = 301; //版本文件解析错误 version-xml file resolve fail
int VERSION_COMPARE_FAIL = 302; //版本文件对比错误 version-xml file compare fail
/**
* 网络错误
*/
int REMOTE_FILE_NOT_FOUND = 404;
int NETWORK_ERROR = 405;
/**
* 没有相应的方法
*/
int NO_SUCH_METHOD = 501;
/**
* 未知错误
*/
int UNKNOWN_ERROR = 901;
Android only
MIT
FAQs

The npm package cordova-plugin-check-app-update receives a total of 7 weekly downloads. As such, cordova-plugin-check-app-update popularity was classified as not popular.
We found that cordova-plugin-check-app-update demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.