I'm using Fabric Crashlytics for Android and it's really a great engine, and notifies me whenever there's a crash (on both the dashboard and my emai), but what i want to know is that:
Can I send an event to the dashboard (or my email) when the app catches an exception (i.e can i send the exception.printStackTrace()
whenever the app catches an exception)?
Yes, you can.
https://docs.fabric.io/android/crashlytics/caught-exceptions.html
try {
...
} catch (Exception e) {
Crashlytics.logException(e);
// handle your exception here!
}
If you want to log details of the error, see fabric doc
try
{
// your code
}
catch(Exception e)
{
Crashlytics.logException(e);
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With