📜  crashlytics ionic 3 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:20.731000             🧑  作者: Mango

代码示例1
// 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');