Socket
Book a DemoInstallSign in
Socket

cordova-plugin-mz-bugly-sdk

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-mz-bugly-sdk

Cordova Crash Reporter

1.0.3
latest
Source
npmnpm
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

项目说明

腾讯Buyly SDK的Cordova插件。

安装

cordova plugin add cordova-plugin-mz-bugly-sdk

调用

初始化SDK

var args = {
    // 通用配置
    debug:true,
    ios_appId:"",
    //是否开启卡顿检测
    block_monitor_enable:true
};

window.bugly.initSDK(function(success){
	console.log("初始化成功");
},function(err){
   console.log("初始化失败");
   console.log(err);
},args);

window.bugly.setUserId(function(success){
    console.log("设置成功");
},function(err){
    console.log("设置失败");
    console.log(err);
},{{userId}});


window.bugly.setUserValue(function(success){
    console.log("设置成功");
},function(err){
    console.log("设置失败");
    console.log(err);
},{
    userName:"{{userName}}",
    nickName:"{{nickName}}",
});

发布

npm publish --registry=https://registry.npmjs.org/

Keywords

cordova

FAQs

Package last updated on 14 Jul 2025

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.