HomeDocumentationAPI Reference
Getting StartedAPI ReferenceBug ReportingCrash ReportingAPMHelp Center
These docs are for v8.1. Click to read the latest docs for v12.0.0.

Disabling/Enabling Bug Reporting

This section covers how to disable and enable bug reporting.

When your users invoke the SDK, a popup appears with default Prompt Options for them to "Report a problem" (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.

In the example below, bug reporting, feedback, and in-app chat are enabled.

// Disable the Bugs & Feedback. If disabled, both "Report a problem" & "Suggest an improvement" are removed from the Instabug's prompt, and manually showing the bug reporting or feedback doesn't have an effect.
BugReporting.setState(Feature.State.DISABLED);

You can also specify whether to show one of the Report a Problem or Suggest an Improvement options, or both using this API:

BugReporting.setReportTypes(BugReporting.ReportType.BUG, BugReporting.ReportType.FEEDBACK);

By default, all three options are enabled if they are available in your current plan.


What’s Next

Give the Prompt Options page a look to see how you can further customize what your users can do with Instabug.