@voxelforged/crash-handler
v0.0.4
Published
A basic plugin to detect native crashes
Readme
crash-handler
A basic plugin to detect native crashes
Install
npm install crash-handler
npx cap syncAPI
didCrashLastRun()
didCrashLastRun() => Promise<{ value: boolean; }>Returns true if the app crashed during the last run, false otherwise.
Returns: Promise<{ value: boolean; }>
getLatestCrashReport()
getLatestCrashReport() => Promise<{ stackTrace: string; }>Returns the stack trace of the latest crash report.
Returns: Promise<{ stackTrace: string; }>
getCrashReports()
getCrashReports() => Promise<{ reports: { reportFileName: string; }[]; }>Returns a list of crash reports, each containing the report file name, from the app's storage directory.
Returns: Promise<{ reports: { reportFileName: string; }[]; }>
crash()
crash() => Promise<void>Triggers a crash in the app. This is for testing purposes only. Note: This will not cause a crash in the web implementation.
