HomeDocumentationAPI Reference
Getting StartedAPI ReferenceHelp CenterVideo Tours

Set Prompt Options (Disabling Features)

This API is used to change the options shown in the Instabug invocation. Any number of prompt options can be passed to this API. Only the options set will show. Below are all the possible options:

  • Show the "Report a Bug" option
  • Show the "Suggest an Improvement" option
  • Show the "Ask a Question" option

While disabling the Bug Reporting option, removes all three of "Report a Bug", "Suggest an Improvement" and "Ask a Question", you can also set the enabled report types if you'd only like one or the other.

Enable or Disable Feature

// 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.enabled = false

// Disable the Replies. If disabled, the chats list button is removed from Instabug's prompt, the in-app notifications are disabled, and manually showing the chats list doesn't have an effect. 
Replies.enabled = false
// 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.
IBGBugReporting.enabled = NO;

// Disable the Replies. If disabled, the chats list button is removed from Instabug's prompt, the in-app notifications are disabled, and manually showing the chats list doesn't have an effect. 
IBGReplies.enabled = NO;
// 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);

// Disable the Replies. If disabled, the chats list button is removed from Instabug's prompt, the in-app notifications are disabled, and manually showing the chats list doesn't have an effect. 
Replies.setState(Feature.State.DISABLED);
// 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.setEnabled(true);

// Disable the Replies. If disabled, the chats list button is removed from Instabug's prompt, the in-app notifications are disabled, and manually showing the chats list doesn't have an effect. 
Replies.setEnabled(true);
// 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.
cordova.plugins.bugReporting.setEnabled(boolean, successCb, errorCb)

// Disable the Replies. If disabled, the chats list button is removed from Instabug's prompt, the in-app notifications are disabled, and manually showing the chats list doesn't have an effect. 
cordova.plugins.replies.setEnabled(boolean, successCb, errorCb)
// 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.
IBGBugReporting.Enabled = true;

// Disable the Replies. If disabled, the chats list button is removed from Instabug's prompt, the in-app notifications are disabled, and manually showing the chats list doesn't have an effect. 
IBGReplies.Enabled = true;
// Disable the Bugs, Feedback, & Questions. If disabled, "Report a problem" "Suggest an improvement" & "Ask a Question" are removed from the Instabug's prompt, and manually showing the bug reporting or feedback doesn't have an effect.
BugReporting.setEnabled(true);

// Disable the Replies. If disabled, the chats list button is removed from Instabug's prompt, the in-app notifications are disabled, and manually showing the chats list doesn't have an effect. 
Replies.setEnabled(true);
Set Enabled Report Types

BugReporting.promptOptionsEnabledReportTypes = [.bug, .feedback]
IBGBugReporting.promptOptionsEnabledReportTypes = IBGBugReportingReportTypeBug | IBGBugReportingReportTypeFeedback;
BugReporting.setReportTypes(BugReporting.ReportType.ReportTypeBug, BugReporting.ReportType.ReportTypeFeedback);
//Arguments: chat, bug, feedback all boolean values
BugReporting.setReportTypes([BugReporting.reportType.bug, BugReporting.reportType.feedback]);
cordova.plugins.bugReporting.setReportTypes([cordova.plugins.bugReporting.reportType.bug, cordova.plugins.bugReporting.reportType.feedback], successCb, errorCb)
//iOS
IBGBugReporting.SetPromptOptionsEnabledReportTypes(IBGBugReportingReportType.Bug)
  
//Android
BugReporting.SetReportTypes(IBGBugReportingReportType.Bug)
BugReporting.setReportTypes([ReportType.bug, ReportType.feedback, ReportType.question]);
Report Types:

//Show New Bug
.bug
//Show New Feedback
.feedback
//Show New Question
.question
//Show New Bug
IBGBugReportingReportTypeBug
//Show New Feedback
IBGBugReportingReportTypeFeedback
//Show New Question
IBGBugReportingReportTypeQuestion
//Show New Bug
BugReporting.ReportType.BUG
//Show New Feedback
BugReporting.ReportType.FEEDBACK
//Show New Question
BugReporting.ReportType.QUESTION
//Show New Bug
BugReporting.reportType.bug
//Show New Feedback
BugReporting.reportType.feedback
//Show New Question
BugReporting.reportType.question
//Show New Bug
cordova.plugins.bugReporting.reportType.bug
//Show New Feedback
cordova.plugins.bugReporting.reportType.feedback
//Show New Question
cordova.plugins.bugReporting.reportType.question
//Show New Bug
IBGBugReportingReportType.Bug
//Show New Feedback
IBGBugReportingReportType.Feedback
//Show New Question
IBGBugReportingReportType.Question
//Show New Bug
BugReporting.reportType.bug
//Show New Feedback
BugReporting.reportType.feedback
//Show New Question
BugReporting.reportType.question