Search code examples
ioscrashlyticsgoogle-fabric

How to disable crash report popup from crashlytics


I want to disable this crash popup emitted from the crashlytics framework, but still send the crash.

crashlytics' popup before sending a crash

I've seen in the doc that you can filter the dispatch using "CrashlyticsDelegate" but I can't figure out how to shut down this. (also the doc last update is Last updated: 2017-01-20, am I missing something here o.O)

Also using strings I see some methods such as:

  • alertWithTitle:message:delegate:cancelButtonTitle:otherButtonTitle:
  • setupAndDisplayAlertWithTitle:message:cancel:send:alwaysSend:report:

So the questions:

  • Is it at least possible to disable it?

  • If it is, how?

I wonder if it comes from an older version of crashlytics, explaining maybe why I'm not able to find it in the doc~


EDIT: I tested the delegate's methods provided to intercept the crash before sending it


Using - (void)crashlyticsDidDetectReportForLastExecution:(CLSReport *)report; the doc says (in the header since the internet doc isn't up to date):

  • it is not called synchronously during initialization
  • it does not give you the ability to prevent the report from being submitted
  • the report object itself is immutable

So this one doesn't provide any way of removing the popup.


Using - (void)crashlyticsDidDetectReportForLastExecution:(CLSReport *)report completionHandler:(void (^)(BOOL submit))completionHandler; the doc says (in header again):

  • Invoking completionHandler with NO will cause the detected report to be deleted and not submitted to Crashlytics. This is useful for implementing permission prompts, or other more-complex forms of logic around submitting crashes.

Can't disable the popup here either.

Moreover I don't see what is the point of having a "permission prompt" like they say if you can't remove theirs :(


Solution

  • You can disable the privacy dialog pop-up in the app settings page

    https://docs.fabric.io/android/crashlytics/advanced-setup.html#use-the-privacy-dialog

    Here is a screenshot of where it hides:

    enter image description here