Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase Android Crash Reporting

I'm using 'Firebase Android Crash Reporting' and can't make scenario when crash happens and we don't need to manually send it.

So I should 'log' or 'report' something manually all the time I think there could be Exception?

Like 'Fabric' works. Is there any chance to achieve that?

like image 983
Kyryl Zotov Avatar asked Dec 01 '25 09:12

Kyryl Zotov


1 Answers

Firebase Crash Reporting automatically reports all uncaught exceptions. So if you let exceptions "bubble up", they'll show up in Firebase automatically.

If your code already catches/handles/swallows exceptions, you can pass those exceptions on to Firebase. An example from the reference documentation:

try {
     // Some code here...
 } catch (Exception e) {
     // Don't know what to do with this...
     FirebaseCrash.log("Caught an unexpected exception while doing some work");
     FirebaseCrash.report(e);
 }
like image 153
Frank van Puffelen Avatar answered Dec 05 '25 00:12

Frank van Puffelen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!