BUILT FOR IOS
iOS
Chat SDK
Add iPhone messaging with Tencent RTC’s iOS Chat SDK. Connect your Swift or Objective-C interface to direct conversations, groups, and shared media.
DEVELOPER RESOURCES
iOS Chat SDK Docs & Examples
Examples & Source
Explore the messaging experience and the official developer resources.
A better guest conversation
Keep questions, photos, and service updates in one familiar mobile conversation.
More than a text message
Let people share photos and voice messages when words alone are not enough.
IOS CHAT CAPABILITIES
Messaging foundations for your product
Direct conversations
- One-to-one messages
- Your own interface
Group messaging
- Shared conversations
- Membership APIs
Rich messages
- Text and media
- Custom application content
Conversation state
- History and unread counts
- Your application store
User identity
- Your own user IDs
- UserSig authentication
App integration
- iOS APIs
- Platform-specific lifecycle
Explore the iOS Chat APIs
Start with the APIs that connect your application.
Connect your native app
Initialize the SDK once with your Chat application ID.
Read the DocumentationV2TIMSDKConfig *config = [[V2TIMSDKConfig alloc] init];
[[V2TIMManager sharedInstance] initSDK:sdkAppID
config:config];Send the first message
Send text to another user after signing in successfully.
Read the Documentation[[V2TIMManager sharedInstance]
sendC2CTextMessage:@"See you soon!"
to:recipientID
succ:^{ /* Update your sent state. */ }
fail:^(int code, NSString *message) {
/* Show the sending error. */
}];Respond to connection changes
Add an SDK listener and release it when its owner is finished.
Read the Documentation[[V2TIMManager sharedInstance] addIMSDKListener:self];
// When the listener owner is released:
[[V2TIMManager sharedInstance] removeIMSDKListener:self];CUSTOMIZATION
Your experience. Your way.
Build your own interface around connected conversations.
Build an experience of your own
Connect messaging events to the screens and interactions your product needs.
Read the DocumentationGive conversations a place to grow
Connect people and groups through chat that belongs inside your application.
Read the DocumentationGET STARTED
Your first conversation starts here
- 01
- 02
- 03
pod 'TXIMSDK_Plus_iOS'V2TIMSDKConfig *config = [[V2TIMSDKConfig alloc] init];
[[V2TIMManager sharedInstance] initSDK:sdkAppID
config:config];iOS Chat SDK FAQs
Can I integrate Chat with Swift or Objective-C?
Yes. The iOS guide provides native framework options, including Swift and Objective-C editions. The snippets here use the Objective-C API with TXIMSDK_Plus_iOS; follow the matching edition in your own Xcode project.
Does the iOS Chat SDK include a ready-made UI?
The SDK supplies messaging APIs and events. Your application builds the chat screens. The illustrations show possible app experiences.
How do I authenticate users of the iOS Chat SDK?
Generate production UserSig on your backend. Pass it to the client for authentication and keep your application secret on the server.
Are these iOS snippets a complete application?
They show individual integration steps. Follow the full guide for imports, initialization, login, error handling, and target-specific configuration. Test messaging with separate accounts before release.
How is iOS Chat SDK usage priced?
Hosted Chat service usage follows your selected plan. Check the included features and allowances for your application; optional plugins and Call services can have separate requirements.
How do I integrate iOS Chat SDK with Swift or Objective-C?
Integrate the documented package in your Xcode project and handle app lifecycle transitions. Test on an iPhone with the permissions and capabilities used by your chosen features.
How do I test iOS Chat SDK before releasing my app?
Check login, SDK readiness, send and receive events, and message state after reconnecting.
How do I customize the interface for iOS Chat SDK?
Build your own conversation list, message rendering and composer around documented SDK events.
Find support for your next step
Talk about your application
Discuss your product, expected usage, and integration needs.
Contact SalesBuild your next conversation
Build your app with the iOS Chat SDK.

