This page contains Android SDK code examples for Customer Support extensions. For feature documentation, setup instructions, and extension settings, see Customer Support Extensions.
How to Use Extensions with SDK
Enable in Dashboard
Login to CometChat Dashboard, select your app, then go to Chat & Messaging → Features and enable the extension. Configure integration
Add your Chatwoot or Intercom credentials and configure the Customer Support user UID in the extension settings.
Send messages
Messages sent to the configured Customer Support user are automatically forwarded to your support platform.
Chatwoot
The Chatwoot extension makes customer support seamless for your users. Messages sent to the configured Customer Support user are automatically forwarded to your Chatwoot inbox.
The Chatwoot integration is configured through the CometChat Dashboard and works automatically once set up. No additional SDK code is required beyond standard messaging.
Sending a Support Message
Simply send a message to the Customer Support user configured in your extension settings:
val textMessage = TextMessage(
"customer-support-uid", // The UID configured in extension settings
"I need help with my order",
CometChatConstants.RECEIVER_TYPE_USER
)
CometChat.sendMessage(textMessage, object : CometChat.CallbackListener<TextMessage>() {
override fun onSuccess(message: TextMessage) {
// Support message sent successfully
// Message will be forwarded to Chatwoot automatically
}
override fun onError(e: CometChatException) {
// Error sending message
}
})
TextMessage textMessage = new TextMessage(
"customer-support-uid", // The UID configured in extension settings
"I need help with my order",
CometChatConstants.RECEIVER_TYPE_USER
);
CometChat.sendMessage(textMessage, new CometChat.CallbackListener<TextMessage>() {
@Override
public void onSuccess(TextMessage message) {
// Support message sent successfully
// Message will be forwarded to Chatwoot automatically
}
@Override
public void onError(CometChatException e) {
// Error sending message
}
});
Intercom
The Intercom extension makes customer support seamless for your users. Messages sent to the configured Customer Support user are automatically forwarded to your Intercom dashboard.
The Intercom integration is configured through the CometChat Dashboard and works automatically once set up. No additional SDK code is required beyond standard messaging.
Sending a Support Message
Simply send a message to the Customer Support user configured in your extension settings:
val textMessage = TextMessage(
"customer-support-uid", // The UID configured in extension settings
"I have a question about billing",
CometChatConstants.RECEIVER_TYPE_USER
)
CometChat.sendMessage(textMessage, object : CometChat.CallbackListener<TextMessage>() {
override fun onSuccess(message: TextMessage) {
// Support message sent successfully
// Message will be forwarded to Intercom automatically
}
override fun onError(e: CometChatException) {
// Error sending message
}
})
TextMessage textMessage = new TextMessage(
"customer-support-uid", // The UID configured in extension settings
"I have a question about billing",
CometChatConstants.RECEIVER_TYPE_USER
);
CometChat.sendMessage(textMessage, new CometChat.CallbackListener<TextMessage>() {
@Override
public void onSuccess(TextMessage message) {
// Support message sent successfully
// Message will be forwarded to Intercom automatically
}
@Override
public void onError(CometChatException e) {
// Error sending message
}
});