Disabling/Enabling Bug Reporting for iOS
This section covers how to disable and enable bug reporting on iOS.
When your users invoke the SDK, a popup appears with default Prompt Options for them to "Report a bug" (submit a bug), "Suggest an improvement" (send you feedback), or "Ask a question" (send you a chat).
These options can be disabled or enabled separately. When only a single option is enabled, it becomes the default invocation mode and the Prompt Options menu doesn't appear.
The below API completely disables all forms of bug, improvement, and question reports.
BugReporting.enabled = false
IBGBugReporting.enabled = NO;
You can also specify whether to show any of the Report a bug, Suggest an improvement, Ask a question options, or all using this API:
// Specify which of the feedback or bug options appear in the prompt options
BugReporting.promptOptionsEnabledReportTypes = [.bug, .feedback, .question]
// Specify which of the feedback or bug options appear in the prompt options
IBGBugReporting.promptOptionsEnabledReportTypes = IBGBugReportingReportTypeBug | IBGBugReportingReportTypeFeedback | IBGBugReportingReportTypeQuestion;
By default, all three options are enabled if they are available in your current plan.
Updated 12 months ago
Give the Prompt Options page a look to see how you can further customize what your users can do with Instabug.