📅  最后修改于: 2022-03-11 14:48:20.731000             🧑  作者: Mango
// bash
ionic cordova plugin add cordova-plugin-firebase-crashlytics
npm install @ionic-native/firebase-crashlytics
...
import { FirebaseCrashlytics } from '@ionic-native/firebase-crashlytics/ngx';
...
constructor(private firebaseCrashlytics: FirebaseCrashlytics) { }
...
const crashlytics = this.firebaseCrashlytics.initialise();
crashlytics.logException('my caught exception');