cordova-plugin-firebase-crash-ka

Cordova plugin for Firebase Crashlytics

Usage no npm install needed!

<script type="module">
  import cordovaPluginFirebaseCrashKa from 'https://cdn.skypack.dev/cordova-plugin-firebase-crash-ka';
</script>

README

Cordova plugin for Firebase Crashlytics

NPM version NPM downloads Twitter

| Donate | Your help is appreciated. Create a PR, submit a bug or just grab me :beer: | |-|-|

Index

Supported Platforms

  • iOS
  • Android

Installation

$ cordova plugin add cordova-plugin-firebase-crash

If you get an error about CocoaPods being unable to find compatible versions, run

$ pod repo update

Use variable FIREBASE_CORE_VERSION to override dependency version on Android.

Methods

Every method returns a promise that fulfills when a call was successful.

log(message)

Add logging that will be sent with your crash data in case of app crash. Compare Firebase documentation.

cordova.plugins.firebase.crashlytics.log("my custom log message");

logError(message)

Log non-fatal exceptions in addition to automatically reported app crashes. Compare Firebase documentation.

cordova.plugins.firebase.crashlytics.logError("my non-fatal exception message");

setUserId(userId)

Sets the user identifier property for crashlytics reporting. Compare Firebase documentation.

cordova.plugins.firebase.crashlytics.setUserId("12345");