📱 Bugly plugin for Capacitor
npm install capacitor-bugly
npx cap sync
Edit your capacitor.config.json
like below
// capacitor.config.json
{
"appId": "**.***.**",
"appName": "Name",
"plugins": {
"Bugly": {
"androidAppId": "**",
"iOSAppId": "**",
"debug": false
}
}
}
initCrashReport() => any
Manually initializing Bugly
Returns: any
setUserValue(options: SetUserValueOptions) => any
Custom Map parameters can save some custom environment information when a crash occurs
Param | Type |
---|---|
options |
SetUserValueOptions |
Returns: any
setUserSceneTag(options: SetUserSceneTagOptions) => any
Custom 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 |