Socket
Socket
Sign inDemoInstall

@capacitor-community/appcenter-crashes

Package Overview
Dependencies
2
Maintainers
42
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @capacitor-community/appcenter-crashes

Capacitor plugin for Microsoft's App Center Crashes


Version published
Weekly downloads
467
decreased by-29.46%
Maintainers
42
Created
Weekly downloads
 

Readme

Source


App Center Crashes

@capacitor-community/appcenter-crashes

App Center Crashes will automatically generate a crash log every time your app crashes. The log is first written to the device's storage and when the user starts the app again, the crash report will be sent to App Center. Collecting crashes works for both beta and live apps, i.e. those submitted to the App Store. Crash logs contain valuable information for you to help fix the crash.

Maintainers

MaintainerGitHubSocial
John Borgesjohnborges@johnborges

Features

  • Generate test crashes
  • Get more information about a previous crash
  • Customize how crashes are processed
  • Enable or disable App Center Crashes at runtime

Install

npm install @capacitor-community/appcenter-crashes
npx cap sync

API

isEnabled()

isEnabled() => Promise<{ value: boolean; }>

Check if Crashes is enabled or not.

Returns: Promise<{ value: boolean; }>

Since: 0.1.0


setEnabled(...)

setEnabled(options: { enable: boolean; }) => Promise<void>

You can enable and disable App Center Crashes at runtime. If you disable it, the SDK won't do any crash reporting for the app. The state is persisted in the device's storage across application launches.

ParamType
options{ enable: boolean; }

Since: 0.1.1


generateTestCrash()

generateTestCrash() => Promise<void>

Generate a test crash for easy testing of the SDK. This API can only be used in test/beta apps and won't do anything in production apps.

Since: 0.2.0


hasReceivedMemoryWarningInLastSession()

hasReceivedMemoryWarningInLastSession() => Promise<{ value: boolean; }>

Check if app recieved memory warning in the last session.

Returns: Promise<{ value: boolean; }>

Since: 0.2.0


hasCrashedInLastSession()

hasCrashedInLastSession() => Promise<{ value: boolean; }>

Check if the app has crashed in the last session.

Returns: Promise<{ value: boolean; }>

Since: 0.3.0


lastSessionCrashReport()

lastSessionCrashReport() => Promise<{ value: ErrorReport; }>

Provides details about the crash that occurred in the last app session.

Returns: Promise<{ value: ErrorReport; }>

Since: 0.3.0


trackError(...)

trackError(errorModel: TrackableErrorModel) => Promise<{ value: string; }>

Track error

ParamType
errorModelTrackableErrorModel

Returns: Promise<{ value: string; }>

Since: 0.6.0


Interfaces

ErrorReport
PropTypeDescriptionSince
idstringUUID for the crash report.
threadNamestringThread name that triggered the crash
appErrorTimestring | numberDate and time the error occurred.0.7.3
appStartTimestring | numberDate and time the app started.0.7.3
exceptionNamestringException name that triggered the crash.
exceptionReasonstringException reason.
deviceDeviceDevice information of the app when it crashed.
signalstringSignal that caused the crash.
appProcessIdentifiernumberIdentifier of the app process that crashed.
stackTracestringThe stack trace of the crash
Device
PropTypeDescription
sdkNamestringName of the SDK. Consists of the name of the SDK and the platform, e.g. "appcenter.ios", "appcenter.android"
sdkVersionstringVersion of the SDK in semver format, e.g. "1.2.0" or "0.12.3-alpha.1".
modelstringDevice model (example: iPad2,3).
oemNamestringDevice manufacturer (example: HTC).
osNamestringOS name (example: iOS).
osVersionstringOS version (example: 9.3.0).
osBuildstringOS build code (example: LMY47X).
osApiLevelnumberAPI level when applicable like in Android (example: 15).
localestringLanguage code (example: en_US).
timeZoneOffsetnumberThe offset in minutes from UTC for the device time zone, including daylight savings time.
screenSizestringScreen size of the device in pixels (example: 640x480).
appVersionstringApplication version name, e.g. 1.1.0
carrierNamestringCarrier name (for mobile devices).
carrierCountrystringCarrier country code (for mobile devices).
appBuildstringThe app's build number, e.g. 42.
appNamespacestringThe bundle identifier, package identifier, or namespace, depending on what the individual plattforms use, .e.g com.microsoft.example.
TrackableErrorModel
PropType
errorExceptionModelType
properties{ [name: string]: string; }
attachmentsErrorAttachmentLog[]
ExceptionModelType
PropTypeDescription
wrapperSdkNamestringName of the wrapper SDK. e.g 'appcenter.capacitor'
typestringException type, e.g 'TypeException'
messagestringException message
stackTracestringException stacktrace

Keywords

FAQs

Last updated on 04 May 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc