简体   繁体   中英

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弹出窗口

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 oO)

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 :(

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:

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM