
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
cordova-plugin-yidun-guardian
Advanced tools
易盾反作弊cordova原生插件版,目前仅支持 Android
cordova plugin add cordova-plugin-yidun-guardian
var $actionEl = document.getElementById('detectAction'); // 显示动作提示的元素
var instance = new YidunGuardian({
isCollectApk: false, // Boolean, 是否允许采集本机已安装的软件,默认 false
isCollectSensor: false, // Boolean, 是否允许开始采集传感器实时数据,默认 false
channel: '', // String, APP渠道名称,默认空
productNumber: '从易盾申请的productNumber'
}, function (ev) {
if (ev['is_init_success'] === true) { // 初始化反作弊成功
// TODO: do something ....
return
} else if (ev['is_init_success'] === false) { // 初始化反作弊失败
// TODO: do something ....
return
}
if (ev['is_get_token_success'] === true) { // getToken 成功
// TODO: 处理token, ev['token'],从 ev['token'] 获取到 token
// do something ....
console.log(ev['token'])
return
} else if (ev['is_get_token_success'] === false) {
// TODO: do something ....
return
}
}
);
// timeout 最长超时时间,单位毫秒。若没指定,则默认3000毫秒;timeout可设置范围为1000~10000毫秒
instance.getToken(timeout: number)
// 该接口用于实时控制传感器数据的采集,可随时启用或关闭采集功能,但是必须在init之后方可调用该接口
instance.setSeniorCollectStatus(flag: boolean)
cordova-plugin-guardian-demo for a complete working Cordova example for Android platforms.
FAQs
yidun anticheat cordova plugin
We found that cordova-plugin-yidun-guardian 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.