📱 Bugly plugin for Capacitor
npm install capacitor-bugly
npx cap syncEdit your capacitor.config.json like below
// capacitor.config.json
{
"appId": "**.***.**",
"appName": "Name",
"plugins": {
"Bugly": {
"androidAppId": "**",
"iOSAppId": "**",
"debug": false
}
}
}initCrashReport() => anyManually initializing Bugly
Returns: any
setUserValue(options: SetUserValueOptions) => anyCustom Map parameters can save some custom environment information when a crash occurs
| Param | Type |
|---|---|
options |
SetUserValueOptions |
Returns: any
setUserSceneTag(options: SetUserSceneTagOptions) => anyCustom tags are used to indicate a certain "scene" in the app. When a crash occurs, the "scene" where the crash occurs will be displayed, based on the last set label, and the label ID must be greater than 0
| Param | Type |
|---|---|
options |
SetUserSceneTagOptions |
Returns: any
| Prop | Type |
|---|---|
key |
string |
value |
string |
| Prop | Type |
|---|---|
tag |
number |