npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@chrobyte/appcenter-crashes

v5.0.0

Published

Capacitor plugin for Microsoft's App Center Crashes

Downloads

13

Readme

Maintainers

| Maintainer | GitHub | Social | | -----------| -------| -------| | John Borges | johnborges | @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.

| Param | Type | | ------------- | --------------------------------- | | 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

| Param | Type | | ---------------- | ------------------------------------------------------------------- | | errorModel | TrackableErrorModel |

Returns: Promise<{ value: string; }>

Since: 0.6.0


Interfaces

ErrorReport

| Prop | Type | Description | Since | | -------------------------- | ----------------------------------------- | -------------------------------------------------------------------- | ----- | | id | string | UUID for the crash report. | | | threadName | string | Thread name that triggered the crash | | | appErrorTime | string | number | Date and time the error occurred. | 0.7.3 | | appStartTime | string | number | Date and time the app started. | 0.7.3 | | exceptionName | string | Exception name that triggered the crash. | | | exceptionReason | string | Exception reason. | | | device | Device | Device information of the app when it crashed. | | | signal | string | Signal that caused the crash. | | | appProcessIdentifier | number | Identifier of the app process that crashed. | | | stackTrace | string | The stack trace of the crash | |

Device

| Prop | Type | Description | | -------------------- | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | | sdkName | string | Name of the SDK. Consists of the name of the SDK and the platform, e.g. "appcenter.ios", "appcenter.android" | | sdkVersion | string | Version of the SDK in semver format, e.g. "1.2.0" or "0.12.3-alpha.1". | | model | string | Device model (example: iPad2,3). | | oemName | string | Device manufacturer (example: HTC). | | osName | string | OS name (example: iOS). | | osVersion | string | OS version (example: 9.3.0). | | osBuild | string | OS build code (example: LMY47X). | | osApiLevel | number | API level when applicable like in Android (example: 15). | | locale | string | Language code (example: en_US). | | timeZoneOffset | number | The offset in minutes from UTC for the device time zone, including daylight savings time. | | screenSize | string | Screen size of the device in pixels (example: 640x480). | | appVersion | string | Application version name, e.g. 1.1.0 | | carrierName | string | Carrier name (for mobile devices). | | carrierCountry | string | Carrier country code (for mobile devices). | | appBuild | string | The app's build number, e.g. 42. | | appNamespace | string | The bundle identifier, package identifier, or namespace, depending on what the individual plattforms use, .e.g com.microsoft.example. |

TrackableErrorModel

| Prop | Type | | ----------------- | ----------------------------------------------------------------- | | error | ExceptionModelType | | properties | { [name: string]: string; } | | attachments | ErrorAttachmentLog[] |

ExceptionModelType

| Prop | Type | Description | | -------------------- | ------------------- | -------------------------------------------------- | | wrapperSdkName | string | Name of the wrapper SDK. e.g 'appcenter.capacitor' | | type | string | Exception type, e.g 'TypeException' | | message | string | Exception message | | stackTrace | string | Exception stacktrace |