0

Before I called the method

Crashlytics.getInstance().core.logException(new Exception("..."))

Do I need to initialize Crashlytics like this

Fabric.with(this, new Crashlytics());

though I've initialized in the main screen?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Dayo Choul
  • 861
  • 2
  • 9
  • 23
  • As far as I know, you don't have to as long as you have it initialized in the main screen. – Bryan Aug 02 '17 at 11:09

1 Answers1

3

You should initialize Crashlytics on your application class on the onCreate() method. That way all the fatal exceptions are caught by default and when creating a log you only need to call the

Crashlytics.getInstance()

every time you need it

Antimatéria
  • 159
  • 6