sitefinitysteve / nativescript-google-analytics

Apache License 2.0
23 stars 14 forks source link

crash report #1

Closed nicHoch closed 8 years ago

nicHoch commented 8 years ago

Hi thanks for the good plugin. Is it possible to setup the logger to catch all unhandled exceptions and to send these ones as a crash report?

Nicky

sitefinitysteve commented 8 years ago

If you're using 2.6 it should automatically catch unhandled ones...

tracker.enableExceptionReporting(true);

Not sure if this is what you mean?

nicHoch commented 8 years ago

Thanks and it is also possible to listen to the application uncaughtErrorEvent

application.on(application.uncaughtErrorEvent, function (args) {
    //do something with the tracker
    tracker....
});