Configuring Colors, User Actions, and Offline Mode

Learn about color configuration, actions, and offline mode in iOS

To quickly brand your chat app, use the KBMSettings class to customize the color and text and message bubbles. Do this prior to initialization.

Add something like the following in the AppDelegate class. This example sets the conversation accent color. Useful styling settings include:

  • conversationAccentColor
  • userMessageTextColor
  • userMessageTextColor
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {

     let settings = KBMSettings(integrationId: iosIntegrationID)
     settings.conversationAccentColor = YOUR_UICOLOR


Uploading items and attaching a location

The SDK supports uploading items from the Gallery, Camera, Documents and attaching Location. You can customize this by adding an additional line to settings.

settings.allowedMenuItems = [KBMMenuItemCamera,

To enable Camera and/or Gallery on iOS, the application also needs the property list to include the following description keys.



<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
    [other keys like CFBundleIdentifier, CFBundleName, CFBundleVersion, CFBundleShortVersionString, etc...]
    <string>[Description user will see when camera permission request popup appears]</string>
    <string>[Description for adding photos to library via camera]</string>
    <string>[Description user will see when photo-library permission request popup appears]</string>

You can remove the ones you don't support.

Offline usage

SDK also supports offline usage which essentially queues the messages and sends them when the user is back online.

settings.allowOfflineUsage = true