Passer au contenu

@capgo/capacitor-firebase-crashlytics

Capacitor plugin for Firebase Crashlytics.

Capacitor plugin for Firebase Crashlytics.

  • crash - Forces a crash to test the implementation.
  • setCustomKey - Sets a custom key and value that is associated with subsequent fatal and non-fatal reports.
  • setUserId - Sets a user ID (identifier) that is associated with subsequent fatal and non-fatal reports.
  • log - Adds a custom log message that is sent with your crash data to give yourself more context for the events leading up to a crash.
MethodDescription
crashForces a crash to test the implementation.
setCustomKeySets a custom key and value that is associated with subsequent fatal and non-fatal reports.
setUserIdSets a user ID (identifier) that is associated with subsequent fatal and non-fatal reports.
logAdds a custom log message that is sent with your crash data to give yourself more context for the events leading up to a crash.
setEnabledEnables/disables automatic data collection. The value does not apply until the next run of the app.
isEnabledReturns whether automatic data collection is enabled.
didCrashOnPreviousExecutionReturns whether the app crashed during the previous execution.
sendUnsentReportsUploads any unsent reports to Crashlytics at next startup.
deleteUnsentReportsDeletes any unsent reports on the device.
recordExceptionRecords a non-fatal report to send to Crashlytics.
getPluginVersionGet the version of this plugin.

This reference is synced from src/definitions.ts in capacitor-firebase.