UPDATE: Please see \"accepted\" solution below
When my app creates an unhandled exception, rather than simply terminating, I\'d like to first give t
Handling uncaught Exceptions: as @gilm explained just do this, (kotlin):
private val defaultUncaughtHandler = Thread.getDefaultUncaughtExceptionHandler();
override fun onCreate() {
//...
Thread.setDefaultUncaughtExceptionHandler { t, e ->
Crashlytics.logException(e)
defaultUncaughtHandler?.uncaughtException(t, e)
}
}
I hope it helps, it worked for me.. (:y). In my case I've used 'com.microsoft.appcenter.crashes.Crashes' library for error tracking.