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