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

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 both "Report a Bug" and "Suggest an Improvement", 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 Chats. If disabled, The "Ask a question" (this is the new content instead of "Talk to us") option is removed from Instabug's prompt, the compose button in the chats list is removed, and manually showing the chats compose view of the chats doesn't have an effect.
Chats.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 Chats. If disabled, The "Ask a question" (this is the new content instead of "Talk to us") option is removed from Instabug's prompt, the compose button in the chats list is removed, and manually showing the chats compose view of the chats doesn't have an effect.
IBGChats.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 Chats. If disabled, The "Ask a question" (this is the new content instead of "Talk to us") option is removed from Instabug's prompt, the compose button in the chats list is removed, and manually showing the chats compose view of the chats doesn't have an effect.
Chats.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 Chats. If disabled, The "Ask a question" (this is the new content instead of "Talk to us") option is removed from Instabug's prompt, the compose button in the chats list is removed, and manually showing the chats compose view of the chats doesn't have an effect.
Chats.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 Chats. If disabled, The "Ask a question" (this is the new content instead of "Talk to us") option is removed from Instabug's prompt, the compose button in the chats list is removed, and manually showing the chats compose view of the chats doesn't have an effect.
cordova.plugins.chats.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 Chats. If disabled, The "Ask a question" (this is the new content instead of "Talk to us") option is removed from Instabug's prompt, the compose button in the chats list is removed, and manually showing the chats compose view of the chats doesn't have an effect.
IBGChats.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;
##Set Enabled Report Types
IBGBugReporting.promptOptionsEnabledReportTypes = IBGBugReportingReportTypeBug | IBGBugReportingReportTypeFeedback;
BugReporting.promptOptionsEnabledReportTypes = [.bug, .feedback]
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)
Report Types:

//Report a Bug
.bug
  
//Suggest an Improvement
.feedback
//Report a Bug
IBGBugReportingReportTypeBug
  
//Suggest an Improvement
IBGBugReportingReportTypeFeedback
//Bug
BugReporting.ReportType.ReportTypeBug

//Feedback
BugReporting.ReportType.ReportTypeFeedback
//Bug
BugReporting.reportType.bug

//Feedback
BugReporting.reportType.feedback
//Report a Bug
cordova.plugins.bugReporting.reportType.bug
  
//Suggest an Improvement
cordova.plugins.bugReporting.reportType.feedback
//Report a Bug
IBGBugReportingReportType.Bug
  
//Suggest an Improvement
IBGBugReportingReportType.Feedback