Disabling/Enabling In-App Chat
This page details the API for disabling and enabling in-app chats from the Prompt Options invocation mode.
By default, In-App Chat is enabled if it is available in your current plan.
When the Instabug SDK is invoked, a popup appears to your app users with default Prompt Options for them to "Report a problem" (send you a bug report), "Suggest an improvement" (send you feedback), or "Ask a Question" (send you a chat).
Bug reporting, feedback, and chats can be enabled or disabled separately. When only a single option is enabled, it becomes the default invocation mode and the Prompt Options menu doesn't appear. If all options are disabled, bug reporting becomes the default invocation mode and users are shown the bug report form directly.
The example below removes the "Ask a Question" option from the Prompt Options menu. The users will still be able to see the list of chats in the event that you reach out to them, but they will be unable to see the compose message button. Showing the compose message window manually will also no longer have any effect.
IBGChats.Enabled = false;
InstabugCore.SetChatsState(Feature.State.Disabled)
Updated about 1 year ago