Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign 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

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
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