EddyVerbruggen / nativescript-plugin-firebase

:fire: NativeScript plugin for Firebase
https://firebase.google.com
MIT License
1.01k stars 444 forks source link

Crashlytics, cant send native error to crashlytics. #1592

Open bylmzio opened 4 years ago

bylmzio commented 4 years ago

Hey folks, how can i pass the discarded errors to Crashlytics. Following does not work.

application.on(application.discardedErrorEvent, function(args) {
    const error = args.error;
    console.log('Received discarded exception: ');
    console.log(error.message);
    if (isAndroid) {
        crashlytics.sendCrashLog(new java.lang.Exception(error.message));
    }
});
manojdcoder commented 4 years ago

Did you verify your setup, all other crashes / logs showing up in your dashboard but not this one?

bylmzio commented 4 years ago

Yes, real crashes are logged. If i append throw error, everything works fine. But i dont want the app is crashing.

bylmzio commented 4 years ago

@manojdcoder any idea?