Search code examples
androidfirebasefirebase-crash-reporting

Will using one of the CustomActivityOnCrash libraries stop Firebase Crash from working?


I'm thinking of using a library such as this one, however I am worried that FirebaseCrash will stop loading as the library probably overrides the method that is called on crash.

Will Firebase Bug Reports/Firebase Crash stop working if I use a library like this?


Solution

  • I'm the developer of that library. Versions up to 1.5.0 cause Firebase Crash Reporting to stop working. The app will not crash, but the original UncaughtExceptionHandler set internally by Firebase will never be invoked, so you will get no crash data in your Firebase console.

    Version 2.0.0 of the library fixes this issue and everything works as normal.

    Update your dependency to make it work as expected:

    dependencies {
        compile 'cat.ereza:customactivityoncrash:2.0.0'
    }