iOS Chat SDK: Swift-Native Messaging Component for iOS Apps

Add in-app messaging to your iOS app with Ethora’s open source iOS chat SDK for Swift. Modular, secure, and built for performance. Supports SwiftUI and UIKit, with 1:1 chat, group messaging, AI chatbots, and push notifications included, plus a free tier to start.

Start Free
Swift · SwiftUI & UIKit Open-source (AGPL) 1,000 MAU free
Ethora iOS chat SDK running on iPhone screens
Swift-nativeSwiftUI & UIKit components
AI chatbots includedWith push notifications built in
Secure by default, at every layer.
End-to-end encryptionGDPR & HIPAASelf-hostable

Key Benefits of Ethora Chat SDK for iOS

Everything you need to ship a native-feeling chat experience on iOS — fast, secure, and reliable.

Swift-Native UI Components

Native UI

Build beautiful chat screens with native SwiftUI components. They integrate smoothly into any iOS interface and are easily themed and customized to feel native to your app.

Native SwiftUI chat UI components

Real-Time Messaging

Realtime

Give your users an engaging live chat for iOS. Power your app with lightning-fast messages, real-time status syncing, read receipts, and typing indicators.

Real-time instant messaging on iOS

End-to-End Encryption

Security

A smart choice for any app handling sensitive data. Our secure iOS chat SDK encrypts messages at rest and in transit, ensuring data privacy and compliance.

End-to-end encrypted, compliant iOS messaging

Scalable Infrastructure

Scale

Ethora grows with your app, scaling effortlessly as your user base expands. Whether you have 10 or 100,000 users, the SDK handles any userbase without performance loss.

Scalable chat infrastructure for growing apps

Offline Mode Support

Reliability

A reliable iOS chat SDK works even with poor connectivity. Ethora leverages local caching and sync so your app keeps working when the connection is spotty.

Offline message caching and synchronization on iOS

Build High-Performance Chat with Our iOS Chat SDK

Our iOS chat SDK is an open-source solution allowing fast integration while maintaining full customization. It provides a full-stack iOS chat framework that is:

Scalable

Built to handle a growing number of users without re-architecting.

Adaptable

Fits any app architecture, from a simple messenger to a complex product.

Native iOS tooling

Integrates with Xcode, Swift, SwiftUI, UIKit and Swift Package Manager.

Developer-friendly

Clear documentation and idiomatic Swift APIs get your team productive fast.

Supported Features of Our iOS SDK

Whether you’re building a simple messenger or an advanced chat interface, Ethora’s iOS messaging SDK has all the features you may need. Select any feature to see the details.

Add a layer of real-time interaction to your communication. See when another person is composing a message for a natural, conversational feel.

Track the conversation flow and always know when your message was seen — an integral feature of any modern messenger.

Enter a request and quickly find what you need — irreplaceable when you need to locate specific messages, important links, or media.

Make conversations more dynamic by sharing rich media directly within the chat interface — photos, videos, documents, and more.

Apple Push Notification service (APNs) keeps users updated about the latest messages and activity, driving engagement even when the app is closed.

Support both private messages and group conversations, with built-in flexibility for business chats and social apps.

Improve the communication flow with presence indicators — display online/offline status and last activity time for each user.

Let users react to specific messages or media with emoji for quick, expressive feedback.

Ethora iOS SDK supported chat features
Get started

Transform communication into a powerful tool with Ethora’s best chat SDK for iOS.

Add secure, real-time messaging to your iOS app today — no credit card required.

Sign up for free
Free tier available Enterprise SLA No vendor lock-in

Watch

Watch: add in-app chat to an iOS app, step by step

Quick Start: Add Chat to Your iOS App

Ethora’s iOS chat SDK installs via Swift Package Manager and requires iOS 15.0+ with Swift 5.9+. The full source code is open-source on GitHub.

  1. Add the SDK via SPM

    In Xcode, go to File → Add Package Dependencies and enter:

    text
    https://github.com/dappros/ethora-sdk-swift

    Select the XMPPChatCore and XMPPChatUI modules when prompted.

  2. Configure the SDK

    Create a ChatConfig with your App ID and the server addresses — Ethora Cloud below, or your own self-hosted server:

    swift
    import XMPPChatCore
    
    // Ethora Cloud values; use your own URLs when self-hosted
    var config = ChatConfig()
    config.appId = "YOUR_APP_ID"
    config.baseUrl = "https://api.chat.ethora.com/v1"
    config.xmppSettings = XMPPSettings(
        xmppServerUrl: "wss://xmpp.chat.ethora.com/ws",
        host: "xmpp.chat.ethora.com",
        conference: "conference.xmpp.chat.ethora.com"
    )
    // sign the user in with a client JWT from your backend
    config.jwtLogin = JWTLoginConfig(token: chatToken, enabled: true)
  3. Present the chat screen

    Show the ready-made SwiftUI chat, or build your own views on top of XMPPChatCore. Full walkthrough: iOS quickstart.

    swift
    import SwiftUI
    import XMPPChatCore
    import XMPPChatUI
    
    struct ChatScreen: View {
        let config: ChatConfig
    
        var body: some View {
            // room list + rooms; badge your tab with the unread count
            ChatWrapperView(config: config, onUnreadCountChanged: { total in
                print("unread:", total)
            })
        }
    }
  4. Test and launch

    Run on a simulator or device, test with TestFlight for beta feedback, then publish to the App Store. Ethora handles the messaging infrastructure so you can focus on your app.

Using Claude Code or Codex?

Add iOS chat with one prompt

Our open-source skill for Claude Code and Codex does the steps above for you: it adds the Swift package to your Xcode project from the terminal, signs in to Ethora to create or pick an app, writes EthoraEnv.swift and, with your OK, adds the sign-in token route to your backend. Then it checks the setup before you run the app.

/plugin marketplace add dappros/chat-ethora-skill
/plugin install ethora-skill@ethora

Then ask your agent to add Ethora chat to this app. Cursor and other agents: npx skills add dappros/chat-ethora-skill.

Native SwiftUI, Embeddable in UIKit Apps

The Ethora iOS SDK is written natively in Swift and organized into two modules. The ready-made chat UI is built in SwiftUI, and existing UIKit apps host it through the standard SwiftUI bridge — requiring iOS 15.0+ and Swift 5.9+.

SwiftUI developers

Native view components that integrate with the SwiftUI lifecycle and state management. Drop in ChatWrapperView and customize colours, fonts, and layout to match your brand.

UIKit developers

Wrap ChatWrapperView in a UIHostingController and push it onto your navigation stack, like any other SwiftUI screen.

Modular architecture

XMPPChatCore handles XMPP connections, transport, and API integration; XMPPChatUI ships ready-made screens. Use them together, or build entirely custom UI on the core.

iOS Chat SDK Feature Matrix

All features are included in every plan. Higher plans add infrastructure capacity and support options.

Feature Free $0/mo Most popular Business $149/mo Enterprise Custom
1:1 and group messaging Included Included Included
Typing indicators & read receipts Included Included Included
Push notifications (APNs) Included Included Included
Media & file sharing Included Included Included
Message reactions Included Included Included
User presence & status Included Included Included
Message search Included Included Included
SwiftUI & UIKit components Included Included Included
AI chatbots Included Included Included
End-to-end encryption Included Included Included
Monthly active users 1,000 5,000 Unlimited
Concurrent connections 100 250 Unlimited
Tech support & SLA Community 99.9% SLA 24/7 + dedicated
Self-hosted deployment Not available Not available Included
Source code access (server) Not available Not available Optional
Included Included Not available

How Ethora Compares to Other iOS Chat SDKs

Ethora
Open-source · self-hostable
StreamCloud only
SendbirdCloud only
CometChatCloud; on-prem add-on
iOS SDK language
Swift (native)
Swift
Swift
Swift
SwiftUI support
Yes (native)
Yes
Yes
UIKit-based
Open source SDK
Yes (AGPL)
Source-available licence
Proprietary licence
Proprietary licence
Self-hosted option
Yes
No
No
Enterprise add-on
AI chatbots built-in
Yes (RAG, LLM)
No (bring your own model)
Separate product
Separate product
Free tier
1,000 MAU
1,000 MAU
30-day trial
100 users, dev only
Paid plans from
$149/mo
$399/mo
$349/mo
$239/mo
HIPAA compliance
BAA on Enterprise, or self-host
Elevate plan and up
Add-on
Advanced plan and up
Managed hosting
Yes (Ethora TechOps)
Cloud only
Cloud only
Cloud; on-prem on Enterprise
Where each one wins
Self-hosting, built-in AI, flat price
Polished UI kits, big community
Broadest feature set
Calls included, many UI kits

Stream and Sendbird ship SwiftUI UI kits and have large developer communities; CometChat’s iOS kit is UIKit-based. Their paid plans start at $239–$399 a month, they run in the vendor’s cloud, and on-premises deployment is at best an Enterprise add-on. Ethora starts free, then $149 a month, includes AI agents on every plan and can be self-hosted for regulated industries like healthcare and finance. Prices are entry plans billed annually, as listed on each vendor’s pricing page in November 2026.

Use Cases for an iOS Chat SDK

From regulated industries to consumer apps, Ethora adapts to how your users communicate.

Healthcare

HIPAA-compliant patient-provider messaging, appointment coordination, and AI triage assistants in iOS health apps.

Explore healthcare

Finance & insurance

Secure advisor-client communication, transaction alerts, and document sharing within wealth management and banking apps.

Explore finance

Education

Student-teacher messaging, study group chats, and AI tutoring assistants in e-learning platforms.

Explore education

Gaming

Real-time team chat, lobby messaging, and community features in mobile games.

Explore gaming

Marketplaces

Buyer-seller communication, order updates, and support chat in commerce apps.

Explore marketplaces

Enterprise

Internal team messaging with SSO integration, role-based access, and self-hosted deployment for full data control.

Explore enterprise

Telehealth

Live chat between patients and care teams, with encrypted media sharing and EHR integration.

Explore telehealth

Architecture and Technology

Ethora’s iOS SDK connects to a proven backend stack designed for enterprise-grade messaging. The source code is available at github.com/dappros/ethora-sdk-swift — requires iOS 15.0+, macOS 12.0+, and Swift 5.9+.

Chat protocol

XMPP (ejabberd) for real-time messaging over WebSocket transport — reliable delivery and presence management.

API layer

Node.js / TypeScript REST API for users, rooms, authentication, file uploads, and push registration.

Database

MongoDB for message history and user data, Redis for caching and session management.

File storage

MinIO (S3-compatible) for media attachments, documents, and profile images.

Push notifications

Native Apple Push Notification service (APNs) integration via Ethora’s push service, with rich notifications.

AI layer

Optional RAG chatbots, self-hosted LLM agents, and MCP server for intelligent assistants.

Feature Availability & Customization

Chat / Messaging

Real-time communication in 1-on-1 or group chats — typing indicators, read receipts, emojis, media sharing, and more.

Available Customizable

Social Sign-On

Simple user onboarding via Sign in with Apple, Google, and other providers.

Available Customizable

Push Notifications

Instant APNs notifications about new messages, mentions, or other in-app activity.

Available Customizable

Theming and Styling

Match chats with your branding quickly and easily through SwiftUI configuration objects.

Available Customizable

AI Capabilities

Enhanced user experience with personalized replies, chatbots, and smart content moderation.

Available Customizable

Ready-made app

Get the Ethora app

Not ready to build yet? Ethora is also a ready-made chat app. The iPhone app is in App Store review; until then iPhone users can install the web app from Safari. Your users sign in to your workspace and get your branding.

Download the app

FAQ

Is Ethora SDK compatible with both Swift and Objective-C?

The Ethora iOS SDK is written natively in Swift and uses Swift Package Manager for distribution. Swift is the primary language, with the SDK organized into XMPPChatCore and XMPPChatUI modules. Objective-C projects can use the SDK through Swift interoperability — import the Swift modules into your Objective-C codebase via bridging headers. All UI components are built in SwiftUI and can be embedded in UIKit apps using UIHostingController.

How do I add the Ethora iOS SDK to Xcode with Swift Package Manager?

In Xcode choose File → Add Package Dependencies and enter https://github.com/dappros/ethora-sdk-swift. Add the XMPPChatCore product for messaging without UI and XMPPChatUI for the ready-made SwiftUI chat screens. You can also declare the package in Package.swift. The SDK needs iOS 15 or later and Swift 5.9 or later.

Can I use Ethora for both group and one-on-one chats?

Yes, Ethora’s SDK supports both group and one-on-one chats. You can also add typing indicators, read receipts, emojis, media sharing, and other features to both. Everything depends on your needs and vision.

Does the SDK support push notifications on iOS?

Our SDK integrates with Apple Push Notification service (APNs) and supports real-time alerts for new messages, mentions, and other in-app activity.

How customizable is the UI?

The XMPPChatUI module provides ready-made SwiftUI views for room lists, message bubbles, input bars, and media pickers. You can customize colours, fonts, spacing, and layout through configuration objects. For deeper customization, you can use the XMPPChatCore module directly and build entirely custom views on top of the messaging layer, giving you full control over every pixel.

Is offline messaging supported?

Ethora iOS SDK supports offline messaging by caching and local messaging. This enables users to compose and read messages even without an internet connection. When the connection is restored the SDK automatically syncs all updates in the chat history.

Is Ethora iOS SDK GDPR and HIPAA compliant?

Ethora is compliant with both GDPR and HIPAA. We designed it to align with regulatory requirements and be suitable for different industries including those where privacy is paramount (e.g., healthcare, finance). Our solution supports security features like end-to-end encryption and secure user authentication.

Can I host Ethora on my own servers?

Yes. Ethora offers self-hosted deployment on AWS, Azure, GCP, or your own on-premises infrastructure. Your iOS app connects to your dedicated server instead of the shared cloud, giving you full control over data, compliance, and security. Enterprise plans include managed deployment by Ethora TechOps with an SLA.

Get started

Sign Up on Ethora

Start building your iOS chat experience today — free to get started.

Start building
Free tier available Enterprise SLA No vendor lock-in