In-App Chat

This page covers the APIs specific to in-app chats for Xamarin apps.

By default, a notification will be shown on top of your app's UI when a new message is received.

In-App Notifications

Conversation Sound

You can set whether new messages received will trigger a small sound notification or not.

//iOS
//Not supported on iOS

//Android
new Instabug.Builder(this, "ANDROID_APP_TOKEN")
  	.SetInvocationEvent(InstabugInvocationEvent.Shake)
  	.SetShouldPlayConversationSounds(true)
  	.Build();

Disabling In-App Notifications

You can disable the in-app notifications using the following method.

//iOS
Instabug.ReplyNotificationsEnabled = false;

//Android
Instabug.SetReplyNotificationEnabled(false);

Enabling and Disabling

Bug reporting, feedback, and chats can be enabled or disabled separately. When the user invokes the SDK with any of the invocation events, a popup appears showing all the enabled features. When only a single option is enabled, it becomes the default invocation mode and the popup doesn't appear. If all options are disabled, bug reporting becomes the default invocation mode.

//iOS
IBGBugReporting.PromptOptions = IBGPromptOption.Bug | IBGPromptOption.Chat;

//Android 
BugReporting.SetPromptOptionsEnabled(PromptOption.Bug, PromptOption.Chat);