android - Using a custom crash handler with Firebase installed -
i've been using neat library handle force-close crashes:
https://github.com/ereza/customactivityoncrash
it's been working great until decided add firebase notifications app. i've selected notifications , such i've added following dependency:
compile 'com.google.firebase:firebase-messaging:10.0.1' for reason, firebase crash reports being initialized, because custom crash handler see's , displays following message:
e/customactivityoncrash: important warning! have uncaughtexceptionhandler, sure correct? if use acra, crashlytics or similar libraries, must initialize them after customactivityoncrash! installing anyway, original handler not called. my custom crash handler first thing initialized in (application) oncreate() method, don't see or how prevent firebase crash reporting loading/initializing itself.
any appreciated!
i found answer @bobsnyder's comment - lead me search , find previous question/answer:
how disable default firebase crash reporting?
and using answer solve issue:
if want disable firebase analytics crash reporting, use below code inside app.gradle file. configurations { all*.exclude group: 'com.google.firebase', module: 'firebase-crash' }
Comments
Post a Comment