Socket
Book a DemoInstallSign in
Socket

@osvlabs/cordova-plugin-bugly-sdk

Package Overview
Dependencies
Maintainers
6
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@osvlabs/cordova-plugin-bugly-sdk

Cordova Crash Reporter

1.0.6
latest
Source
npmnpm
Version published
Weekly downloads
6
Maintainers
6
Weekly downloads
 
Created
Source

cordova-plugin-bugly-sdk

cordova plugin for Tencent Bugly SDK

you can catch app crash reprot (like android anr, oc expection,js erro etc.) by this plugin.

more info, visit https://bugly.qq.com/docs/

Example

Ionic3 Demo

Docs

install

cordova plugin add @osvlabs/cordova-plugin-bugly-sdk  --variable ANDROID_APPID=your value --variable ANDROID_APPKEY=your value --variable IOS_APPID=your value --save

methods

init sdk

please notice params difference with each platform

var args = {
  // common
  debug: true,
  channel: "test",
  develop: true,
  version: "1.0"
  // android
  // delay:20000,
  // package:"com.jasonz.bugly.demo",
  // ios
  // device_id: "xxx-xxx",
  // block_monitor_enable: true,
  // block_monitor_timeout: 10000
};

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

enable js error handler

Bugly.enableJSMonitor();

set user indentifier

var id = "jason.z";
Bugly.setUserID(id);

set tag id(id must be numeric)

var id = 10086;
Bugly.setTagID(id);

set user define data

var data = {
  key: "id",
  value: 1
};

Bugly.putUserData(id);

There also have some methods to test app crash, you can see them in demo project code.

Donate

If this project help you reduce time to develop, you can give me a cup of coffee :)

paypal

Keywords

cordova

FAQs

Package last updated on 23 Aug 2019

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.