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