EddyVerbruggen / nativescript-plugin-firebase

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

[CRASHLYTICS] - Javascript error not logged #1625

Open mapo80 opened 4 years ago

mapo80 commented 4 years ago

Hi,

I've enabled Crashlytics on NS application. If I raise an error like this:

        setTimeout( () => {

            const xxx = 1/0;

        }, 5000);

I have this log on console but nothing is sent to Crashlytics Dashboard

(TNSCrashlyticsLogger) [Crashlytics:Crash] Warning: NSUncaughtExceptionHandler is 'TNSObjectiveCUncaughtExceptionHandler'

How to send automatically it on Crashlytics. Can be done?

If I use this, everything works fine:

        setTimeout( () => {

            firebaseApp.crashlytics.crash();

        }, 5000);

Thanks, very much.

fpaaske commented 4 years ago

In my test 1/0 does not cause an error, it just returns Infinity.