Skip to content

huangang/capacitor-bugly

 
 

Repository files navigation

capacitor-bugly

npm

📱 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

Inspiration

About

📱 Bugly plugin for Capacitor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 37.7%
  • TypeScript 22.5%
  • Swift 22.3%
  • Ruby 7.4%
  • Objective-C 5.9%
  • JavaScript 4.2%