2

I am using FirebaseCrashlytics to log exception manually with FirebaseCrashlytics.getInstance().recordException(e) but as a request from my PO, I need this exception to be uploaded immediately after this line. Is this possible? On the docs, I've found the method sendUnsentReports() but this doesn't look to work, I also checked right after record an exception if there is any unsent report using checkForUnsentReports() but the result of the task is true only if I close and reopen the app.

robsonbbs
  • 23
  • 4

1 Answers1

0

As linked here: firebase sendUnsentReports() sends exceptions only after restart

Logged exceptions are not sent immediately when they are recorded. They are batched and sent either on startup or at crash time. Calling sendUnsentReports, will cause cached reports to be sent at that time, but it will not send anything from the current session.

Oleg Kodysh
  • 986
  • 6
  • 13