Disabling/Enabling Crash Reporting for iOS
This page details the API for disabling and enabling crash reporting for your iOS apps.
Instabug Crash Reporting can be disabled with the following method. This will completely prevent any crash report from being sent to your dashboard. By default, crash reporting is enabled if it is available in your current plan.
CrashReporting.enabled = false
IBGCrashReporting.enabled = NO;
Disabling Crash Reporting
In case you need to disable Crash Reporting, it should be disabled before Instabug is initialized (before
startWithToken:
)
Disable App Hangs
By default, App Hangs are captured by the SDK and sent to your dashboard. However, you can still disable them using the following API.
CrashReporting.appHangEnabled = false
IBGCrashReporting.appHangEnabled = NO
Disable Force Restarts
By default, Force Restarts are captured by the SDK and sent to your dashboard. However, you can still disable them using the following API.
CrashReporting.forceRestartEnabled = false
IBGCrashReporting.forceRestartEnabled = NO
Disable OOM Crashes
By default, out-of-memory crashes are captured by the SDK and sent to your dashboard. However, you can still disable them using the following API.
CrashReporting.OOMEnabled = false
IBGCrashReporting.OOMEnabled = NO
Updated 9 months ago