Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@capacitor-community/appcenter-crashes
Advanced tools
Capacitor plugin for Microsoft's 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.
Maintainer | GitHub | Social |
---|---|---|
John Borges | johnborges | @johnborges |
npm install @capacitor-community/appcenter-crashes
npx cap sync
isEnabled()
setEnabled(...)
generateTestCrash()
hasReceivedMemoryWarningInLastSession()
hasCrashedInLastSession()
lastSessionCrashReport()
trackError(...)
isEnabled() => Promise<{ value: boolean; }>
Check if Crashes is enabled or not.
Returns: Promise<{ value: boolean; }>
Since: 0.1.0
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() => 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() => Promise<{ value: boolean; }>
Check if app recieved memory warning in the last session.
Returns: Promise<{ value: boolean; }>
Since: 0.2.0
hasCrashedInLastSession() => Promise<{ value: boolean; }>
Check if the app has crashed in the last session.
Returns: Promise<{ value: boolean; }>
Since: 0.3.0
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(errorModel: TrackableErrorModel) => Promise<{ value: string; }>
Track error
Param | Type |
---|---|
errorModel | TrackableErrorModel |
Returns: Promise<{ value: string; }>
Since: 0.6.0
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 |
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. |
Prop | Type |
---|---|
error | ExceptionModelType |
properties | { [name: string]: string; } |
attachments | ErrorAttachmentLog[] |
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 |
FAQs
Capacitor plugin for Microsoft's App Center Crashes
We found that @capacitor-community/appcenter-crashes demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 42 open source maintainers collaborating on the project.
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.