Crashlytics Android SDK - custom UncaughtExceptionHandler

前端 未结 6 1972
星月不相逢
星月不相逢 2020-11-29 05:34

Is it possible to incorporate custom UncaughtExceptionHandler along with crashlytics in one application? If yes - how?

6条回答
  •  攒了一身酷
    2020-11-29 06:23

    1. Turn off automatic collection

      add this to your AndroidManifest.xml

    
    
    1. Register your custome UncaughtExceptionHandler
    Thread.setDefaultUncaughtExceptionHandler(customerUncaughtExceptionHandler)
    
    1. Manually start Crashlytics after registered UncaughtExceptionHandler
    Fabric.with(this, new Crashlytics());
    
    1. rebuild and reinstall your Application

提交回复
热议问题