Search code examples
androidfirebasefirebase-crash-reporting

Does Firebase's "Crash Reports" report automatically on a crash?


Let's say I have this:

String x = i;

and i is null, and then, I get a NullPointerException. I didn't add any Firebase Logs, so will this be reported? I've setup the SDK and everything, however, when I tried, it didn't report anything, but it says reports may take up to 24 hours. So, will it be reported?


Solution

  • As per Firebase doc to Create your first error answer is Yes

    Firebase Crash Reporting automatically generates reports for fatal errors (or uncaught exceptions).

    But Make sure you follow below steps for Set up Crash Reporting for your app:


    1. If you haven’t already, set up Firebase for your Android project.

    2. In the Firebase console, add your app to your Firebase project.

    3. Add the dependency for Crash Reporting to your app-level build.gradle file:

      compile 'com.google.firebase:firebase-crash:9.4.0'

    4. Before proceeding, check if your app manifest defines an Application object. If that is the case, check the Known issues section.

    I hope its helps you.