Add live chat to your iOS app

Chat WidgetUpdated October 16th, 2026

Add Helpium's native support chat to your iOS app. Your customers talk to your AI and your team without leaving the app, and their conversations land in the same inbox as your web chat, email and WhatsApp.

The SDK is a Swift Package with a native SwiftUI interface. It needs iOS 15 or later and has no other dependencies. It works in SwiftUI and UIKit apps.

Before you start

In Helpium, open Channels → Live Chat and copy your widget key. It identifies your workspace and is safe to include in the app.

1. Install the package

In Xcode, choose File → Add Package Dependencies…, paste the repository URL and add the Helpium product to your app target:

https://github.com/helpium-io/helpium-sdk

Customers can attach photos from the camera, so add a camera usage description to your Info.plist:

<key>NSCameraUsageDescription</key>
<string>Take a photo to send to our support team.</string>

2. Configure the SDK at launch

import Helpium

@main
struct MyApp: App {
    init() {
        Helpium.configure(widgetKey: "YOUR_WIDGET_KEY")
    }

    var body: some Scene {
        WindowGroup { ContentView() }
    }
}

In a UIKit app, call Helpium.configure in application(_:didFinishLaunchingWithOptions:).

3. Tell Helpium who the customer is

When a customer signs in to your app, pass a token your server signs with the workspace identity secret. Their conversation then follows them to any device, and AI actions can work on their account. See Verify your customers' identity.

Helpium.identify(userJwt: tokenFromYourServer)

// On logout
Helpium.logout()

No login in your app? Skip this step. The chat asks for a name and email before the first message when your Live Chat settings require it.

4. Open the chat

// From any button
Helpium.present()

// Or as a SwiftUI view you push or embed
NavigationLink("Help") { Helpium.chatView() }

The chat opens straight into the customer's open conversation. Without one, it shows your greeting and instant answers, ready to type.

5. Show unread replies

let listener = Helpium.addUnreadCountListener { count in
    helpBadge.isHidden = count == 0
    helpBadge.text = "\(count)"
}

Keep the returned listener; it stops when released.

Colors and texts

Every color is configurable, separately for light and dark mode:

Helpium.setAppearance(HelpiumAppearance(
    light: HelpiumColors(primary: "#0ea5e9", headerBackground: "#0ea5e9", headerText: "#ffffff"),
    dark: HelpiumColors(primary: "#38bdf8", background: "#0f172a", surface: "#1e293b")
))

Any color you leave out uses your brand color from Live Chat settings or a neutral default.

Every text can be replaced per language. Add keys like helpium_greeting or helpium_welcome_title to your app's Localizable.strings, or set one from code:

Helpium.setString("Hi! Need a hand with your order?", for: "greeting")

Next steps