HomeDocumentationAPI Reference
Getting StartedAPI ReferenceBug ReportingCrash ReportingAPMHelp Center
API Reference

Set Prompt Options (Disabling Features)

This API is used to change the options shown in the Luciq 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 Luciq'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 Luciq'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 Luciq's prompt, and manually showing the bug reporting or feedback doesn't have an effect.
LCQBugReporting.enabled = NO;

// Disable the Replies. If disabled, the chats list button is removed from Luciq's prompt, the in-app notifications are disabled, and manually showing the chats list doesn't have an effect. 
LCQReplies.enabled = NO;
// Disable the Bugs & Feedback. If disabled, both "Report a problem" & "Suggest an improvement" are removed from the Luciq'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 Luciq'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 Luciq'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 Luciq'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 Luciq'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 Luciq'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, & Questions. If disabled, "Report a problem" "Suggest an improvement" & "Ask a Question" are removed from the Luciq'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 Luciq'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 Luciq'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 Luciq'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 Luciq's prompt, and manually showing the bug reporting or feedback doesn't have an effect.
LCQBugReporting.Enabled = true;

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

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

//Show New Bug
.bug
//Show New Feedback
.feedback
//Show New Question
.question
//Show New Bug
LCQBugReportingReportTypeBug
//Show New Feedback
LCQBugReportingReportTypeFeedback
//Show New Question
LCQBugReportingReportTypeQuestion
//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
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
LCQBugReportingReportType.Bug
//Show New Feedback
LCQBugReportingReportType.Feedback
//Show New Question
LCQBugReportingReportType.Question