Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
cordova-plugin-oppo-push
Advanced tools
OPPO手机推送
安装 cordova-plugin-oppo-push
cordova plugin add cordova-plugin-oppo-push --variable APP_KEY=YOUR_APP_KEY --variable APP_SECRET=YOUR_APP_SECRET
使用前需注册,以获取 token
,你可以将 token
与你的app用户信息关联后上传到服务器
// 注册推送
oppoPush.register(function(token) {
console.log(token);
}, function(err) {
console.log(err);
}, []);
// 接收token
oppoPush.onNewToken(function(token) {
console.log(token); // 会多次接收到token
});
注册完成后,需要监听 messageReceived
事件
document.addEventListener("messageReceived", function(result) {
console.log(result);
}, false);
FAQs
Cordova Push Plugin
The npm package cordova-plugin-oppo-push receives a total of 1 weekly downloads. As such, cordova-plugin-oppo-push popularity was classified as not popular.
We found that cordova-plugin-oppo-push 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.