How Can I use ACRA and Firebase Crashlytics both?See original GitHub issue
When I am using ACRA my firebase crashlytics is unable to collect the log. I know this is expected. But I need to use both of it.
I want to show the error dialog of acra instead of “Unfortunately App has stopped” and beside this I also want to send the error log to firebase crashlytics. Is there any possibilities to achieve that?
And if I implement my own custom sender then the
AcraDialog does not work.
- Created 2 years ago
- Comments:12 (7 by maintainers)
Top GitHub Comments
ACRA does not chain default exception handlers, it replaces, yes. So you set up ACRA first, then chain to Crashlytics.
I don’t use Crashlytics in my ACRA-enabled app, but I do want to send things to google analytics at the same time ACRA is configured, so I initialize ACRA first, then I chain the default exception handles myself like this
Looks like crashlytics does the same as my UsageAnalytics class - it chains to the existing handler:
So it’s an order-of-initialization thing unless ACRA implements chaining to an existing handler. Initialize ACRA first, then initialize Crashlytics at runtime by disabling automatic collection then enabling it after your ACRA init like so https://firebase.google.com/docs/crashlytics/customize-crash-reports?platform=android#enable-reporting