The Swift Chat SDK built for serious scale

Build mobile chat applications with a Swift chat SDK your team will love, on a platform you can trust.

<50ms

median roundtrip latency

1B+

connections per month

100%

uptime over 5 years

Trusted by brands serious about realtime

Realtime chat that just works

Built to serve the world’s most demanding workloads: 1B+ connected devices, with 5+ years of 100% uptime. No outages. Just a seamless chat.

Power more within budget

Don’t stifle innovation for fear of cost. Scale chat, reactions, and features without the overhead. Just pay for what you use, when you use it.

Get building. Not managing realtime

Give your team the tools to rapidly ship exceptional chat experiences. Get users reacting, interacting and engaging like never before.

Keep the conversation flowing

Build any iOS chat experience

Ably's Swift Chat SDK enables you to build any chat experience, at any scale. Effortlessly handling your traffic flow and providing essential features out of the box.

Live streaming chat

  • Unlimited scale
  • Cost optimization via message batching
  • No peak concurrent connection overages
  • Message and room reactions
  • Online user status and room occupancy
  • Moderation - Hive.ai or BYO
  • Message edit and delete
Live streaming chat image

Customer service chat

Streamline live one:one support chat - whether it's customer service, tech support, patient care, or student help. Roll-out globally without fear of service disruption.

  • Easy integration into your tech stack
  • Multi-region globally distributed infrastructure
  • Direct tickets to the next available agent using presence
  • Fully features chat API inc: typing indicators, read receipts, message edit and delete
Customer service chat image

Community in-app chat

  • Private and group chat
  • Moderation - Hive.ai or BYO
  • Presence and online status indicators
  • Typing indicators
  • Message read receipts
  • Message edited and delete
  • Enable room and message reactions
Community in-app chat image

Talking your language

Stop problem solving. Start innovating.

Ably's Swift Chat SDK contains a set of purpose-built APIs that abstract away the complexities involved in how you would architect chat features. It utilizes Ably's platform to benefit from all of the same performance guarantees and scaling potential.

Swift

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

import Ably
import AblyChat
import Foundation

// Create the Ably clients
let realtimeOptions = ARTClientOptions()
realtimeOptions.key = "<API_KEY>"
realtimeOptions.clientId = "ably-chat"
let realtime = ARTRealtime(options: realtimeOptions)
let chatClient = DefaultChatClient(realtime: realtime, clientOptions: nil)

// Get a chat room
let room = try await chatClient.rooms.get(roomID: "my-chat-room")

// Start receiving messages from the server
try await room.attach()

// Add a listener for new messages in the chat room
let messagesSubscription = try await room.messages.subscribe()
Task {
    // Subscribe to messages
    for await message in messagesSubscription {
        print("Message received: \(message.text)")

Swift building blocks

Interactions. Reactions. All in realtime.

The essential feature set for building large scale chat into iOS applications.

Send/receive chat messages

Send/receive chat messages

Implement 1:1 conversations, group chats and global chat rooms using channels to organize the message traffic.

Edit and delete a chat message

Edit and delete a chat message

Edit the contents of a chat message, or enable soft and hard delete of the chat message.

Message batching

Message batching

Reduce the costs of high-scale, high frequency chat messaging apps.

Chat room reactions

Chat room reactions

Ability to react to the entire room, with server-side aggregated counts of those reactions.

Typing indicator

Typing indicator

Show when a chat participant starts and stops typing with a typing indicator.

Moderation

Moderation

Keep your chat safe in minutes using out-of-the-box integrations with AI moderation platforms, or bring your own tools.

Online status

Online status

Update your UI according to their realtime presence state.

Message reactions

Message reactions

Ability to add and remove a reaction to a chat message.

Authentication

Authentication

Manage access controls for participants using authentication tokens and capabilities.

Choose you platform

Ably's Chat SDKs provide a consistent and idiomatic API across a variety of supported platforms. Available in JavaScript, React, Kotlin (Android) and Swift (iOS).

Start building with Ably today

Light style