{"id":15353650,"url":"https://github.com/jasonz1987/cordova-plugin-bugly-sdk","last_synced_at":"2025-04-15T05:57:11.587Z","repository":{"id":57207912,"uuid":"143419562","full_name":"jasonz1987/cordova-plugin-bugly-sdk","owner":"jasonz1987","description":"cordova plugin for bugly sdk to catch app crash","archived":false,"fork":false,"pushed_at":"2018-08-04T06:36:30.000Z","size":4769,"stargazers_count":9,"open_issues_count":0,"forks_count":11,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-15T05:57:04.034Z","etag":null,"topics":["bugly","bugly-sdk","cordova-plugin","crash"],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jasonz1987.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-03T11:32:01.000Z","updated_at":"2025-02-21T11:56:03.000Z","dependencies_parsed_at":"2022-09-17T12:01:47.755Z","dependency_job_id":null,"html_url":"https://github.com/jasonz1987/cordova-plugin-bugly-sdk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonz1987%2Fcordova-plugin-bugly-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonz1987%2Fcordova-plugin-bugly-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonz1987%2Fcordova-plugin-bugly-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonz1987%2Fcordova-plugin-bugly-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jasonz1987","download_url":"https://codeload.github.com/jasonz1987/cordova-plugin-bugly-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249016321,"owners_count":21198832,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bugly","bugly-sdk","cordova-plugin","crash"],"created_at":"2024-10-01T12:14:47.807Z","updated_at":"2025-04-15T05:57:11.569Z","avatar_url":"https://github.com/jasonz1987.png","language":"Objective-C","funding_links":["https://www.paypal.me/jasonz1987/6.66"],"categories":[],"sub_categories":[],"readme":"# cordova-plugin-bugly-sdk\n\n\n\ncordova plugin for [Tencent Bugly SDK](https://bugly.qq.com/)\n\nyou can catch app crash reprot (like android anr, oc expection,js erro etc.) by this plugin.\n\nmore info, visit https://bugly.qq.com/docs/\n\n\n\n# Example\n\n[Ionic3 Demo](https://github.com/jasonz1987/ionic-bugly-sdk-demo)\n\n\n\n# Docs\n\n## install\n\n```shell\ncordova plugin add cordova-plugin-bugly-sdk  --variable ANDROID_APPID=your value --variable IOS_APPID=your value\n```\n\n\n\n##  methods\n\n\n**init sdk**\n\n*please notice params difference with each platform*\n\n```javascript\nvar args = {\n    // common\n    debug:true,\n    channel:\"test\",\n    develop:true,\n    version:\"1.0\",\n    // android\n    // delay:20000,\n    // package:\"com.jasonz.bugly.demo\",\n    // ios\n    // device_id: \"xxx-xxx\",\n    // block_monitor_enable: true,\n    // block_monitor_timeout: 10000\n};\n\nBugly.initSDK(function(success){\n\tconsole.log(\"初始化成功\");\n},function(err){\n   console.log(\"初始化失败\");\n   console.log(err);\n},args);\n\n```\n\n\n\n**enable js error handler**\n\n```javascript\n  Bugly.enableJSMonitor();\n```\n\n\n\n**set user indentifier**\n\n```javascript\n  var id = \"jason.z\";\n  Bugly.setUserID(id);\n```\n\n\n\n**set tag id(id must be numeric)**\n\n```javascript\n  var id = 10086;\n  Bugly.setTagID(id);\n```\n\n\n\n**set user define data**\n\n\n```javascript\n var data = {\n    key:'id',\n    value:1\n  };\n\n Bugly.putUserData(id);\n```\n\n\n\nThere also have some methods to test app crash, you can see them in demo project code.\n\n\n\n\n# Donate\n\nIf this project help you reduce time to develop, you can give me a cup of coffee :)\n\n\n\n[![paypal](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/jasonz1987/6.66)\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonz1987%2Fcordova-plugin-bugly-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjasonz1987%2Fcordova-plugin-bugly-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonz1987%2Fcordova-plugin-bugly-sdk/lists"}