
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
cordova-plugin-vivo-push
Advanced tools
Vivo手机推送
安装 cordova-plugin-vivo-push
cordova plugin add cordova-plugin-vivo-push --variable APP_KEY=YOUR_APP_KEY --variable APP_ID=YOUR_APP_ID
使用前需注册,以获取 token
,你可以将 token
与你的app用户信息关联后上传到服务器
declare let VivoPush :any;
...
// 注册推送
VivoPush.register(function(token) {
console.log(token);
alert('register success:' + token);
}, function(err) {
console.log(err);
alert('register fail:' + err);
}, []);
// 接收token
VivoPush.onNewToken(function(token) {
console.log(token); // 会多次接收到token
}, function(err) {
console.log(err);
alert('register fail:' + err);
});
注册完成后,需要监听 messageReceived
事件
document.addEventListener("messageReceived", function(result) {
console.log(result);
}, false);
FAQs
Vivo手机推送
The npm package cordova-plugin-vivo-push receives a total of 0 weekly downloads. As such, cordova-plugin-vivo-push popularity was classified as not popular.
We found that cordova-plugin-vivo-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.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.