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

Popular posts from this blog

How to understand 2 main() functions after using uftrace to profile the C++ program? -

c# - Update a combobox from a presenter (MVP) -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -