Crashlytics

Contents

API for interacting with the Crashlytics kit.

https://www.npmjs.com/package/cordova-fabric-plugin

Stuck on a Cordova issue?

Installation

Community Enterprise
ionic cordova plugin add cordova-fabric-plugin npm install @ionic-native/fabric
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More   or   Contact Us
ionic activate-native-ee --key=YOURPRODUCTKEY ionic integrations add @ionic-native/fabric

Supported Platforms

  • Android
  • iOS

Usage

import { Crashlytics } from '@ionic-native/fabric/ngx';


constructor(private crashlytics: Crashlytics) { }

...

try {
 await this.loadData();
} catch (e) {
 this.crashlytics.addLog("Error while loading data");
 this.crashlytics.sendNonFatalCrash(e.message || e);
}