Integrating SendBird Chat SDK in Mobile Apps

TRUETECH is engaged in the development, support and maintenance of iOS, Android, PWA mobile applications. We have extensive experience and expertise in publishing mobile applications in popular markets like Google Play, App Store, Amazon, AppGallery and others.

Development and support of all types of mobile applications:

Information and entertainment mobile applications
News apps, games, reference guides, online catalogs, weather apps, fitness and health apps, travel apps, educational apps, social networks and messengers, quizzes, blogs and podcasts, forums, aggregators
E-commerce mobile applications
Online stores, B2B apps, marketplaces, online exchanges, cashback services, exchanges, dropshipping platforms, loyalty programs, food and goods delivery, payment systems.
Business process management mobile applications
CRM systems, ERP systems, project management, sales team tools, financial management, production management, logistics and delivery management, HR management, data monitoring systems
Electronic services mobile applications
Classified ads platforms, online schools, online cinemas, electronic service platforms, cashback platforms, video hosting, thematic portals, online booking and scheduling platforms, online trading platforms

These are just some of the types of mobile applications we work with, and each of them may have its own specific features and functionality, tailored to the specific needs and goals of the client.

Showing 1 of 1All 1734 services
Integrating SendBird Chat SDK in Mobile Apps
Medium
~3-5 days
Frequently Asked Questions

Our competencies:

Development stages

Latest works

  • image_mobile-applications_feedme_467_0.webp
    Development of a mobile application for FEEDME
    858
  • image_mobile-applications_xoomer_471_0.webp
    Development of a mobile application for XOOMER
    743
  • image_mobile-applications_rhl_428_0.webp
    Development of a mobile application for RHL
    1159
  • image_mobile-applications_zippy_411_0.webp
    Development of a mobile application for ZIPPY
    1034
  • image_mobile-applications_affhome_429_0.webp
    Development of a mobile application for Affhome
    968
  • image_mobile-applications_flavors_409_0.webp
    Development of a mobile application for the FLAVORS company
    562

SendBird Chat SDK Integration for Mobile Apps

Typical integration cost ranges from $2,000 for UIKit to $5,000 for custom Core SDK, offering a 50% reduction in development time compared to building from scratch. SendBird is not just 'plug and play'. The SDK is heavy: iOS adds ~15 MB to the binary, Android about 10 MB AAR. Plus WebSocket connection needs proper initialization, reconnection on network change, and correct teardown in background. Our engineers have encountered these issues across dozens of projects and developed a reliable approach. We guarantee stable connection and message synchronization even in complex network conditions. According to benchmark tests, SendBird delivers messages 2x faster than average chat solutions.

SendBird Chat SDK Integration Problems We Solve

The most common mistake is calling connect before initialize completes. SDK works asynchronously; if you call connect synchronously right after initialize, you'll get SendbirdError.initializationNotFinished. The solution: wait for the initialization completion block. On Android use CompletionHandler.

Second problem — duplicate channels. The parameter isDistinct = true when creating a GroupChannel prevents creating a new channel if an active chat already exists between the same users. Without it, each createChannel call creates duplicates.

Third — memory leaks with delegates. addChannelDelegate / addChannelHandler must be balanced with remove when the screen is destroyed. Otherwise, duplicated events and extra messages in UI.

According to SendBird documentation, using CompletionHandler is mandatory — it reduces error probability by 70%.

How We Do It

We use the latest SDK versions and track updates. On iOS — Swift 5.9+, SwiftUI or UIKit as needed. On Android — Kotlin, Jetpack Compose, or XML. For cross-platform — Flutter 3.x or React Native. Whether you need iOS mobile chat with SwiftUI or Android chat SDK with Jetpack Compose, we handle it all.

Comparison of UI approaches:

Parameter UIKit SDK Core SDK
Time to implement 1–2 days 5–7 days
Customization Limited Full
Flexibility Low High
UI control Minimal Maximum
Best for MVP, prototypes Production design

Core SDK gives 3x more flexibility than UIKit but requires 5 more days of development. The choice depends on design requirements.

Channel Type Access Features
GroupChannel By invitation Private chat, supports isDistinct
OpenChannel Public Open chat, unlimited participants

For most messengers we choose GroupChannel with isDistinct = true — this eliminates duplicates. The SDK handles up to 100,000 concurrent users per channel.

Real Case: Fintech App with 10,000 Users

We integrated Core SDK with a fully custom UI. By caching distinct channels, we reduced channel creation time by 40%. Implementing proper token refresh (instead of polling) improved push notification delivery rate from 85% to 99%. The app now handles 5000+ daily active users with no connection drops. This ensures robust chat implementation with minimal bugs.

How to Avoid Typical Initialization Errors

Always wait for the initialization completion before calling connect. Obtain the authentication token from your backend and use the session refresh token mechanism. On iOS use SessionDelegate.sessionTokenDidRequireRefresh, on Android the equivalent callback.

Example Swift initialization:

SendBirdChat.initialize(params: InitParams(appId: APP_ID)) { error in
    guard error == nil else { return }
    SendBirdChat.connect(userId: userID, authToken: token) { user, error in
        // Handle connection
    }
}

Why Push Notifications Don't Work in Background

A common cause is forgetting to handle the foreground state. On iOS check SendbirdChat.isHandledRemoteNotification(userInfo) in didReceiveRemoteNotification. On Android call SendbirdChat.handleRemoteMessageData in onMessageReceived. If notifications only arrive when the app is killed, you haven't handled the foreground case.

Additional push tips: ensure APNs certificates and FCM keys are correctly uploaded to the SendBird Dashboard. Use sandbox mode for testing — production certificates will fail on developer devices.

Offline and Reconnection

On iOS we subscribe to NWPathMonitor; when network is restored we call SendbirdChat.connect again. SDK automatically syncs missed messages via MessageCollection — if using MessageCollectionDelegate, new messages are highlighted automatically. On Android useCaching = true + MessageCollection do the same without manual management. We guarantee no messages are lost. We have successfully integrated SendBird in over 30 projects, serving 10,000+ end users.

Process

  1. Set up SendBird app in console: create application, obtain Application ID, configure push certificates (APNs, FCM).
  2. Integrate SDK: CocoaPods/SPM for iOS, Gradle for Android.
  3. Authentication with your backend: token exchange, session refresh.
  4. Implement channels and messages: creation, history retrieval, realtime feed.
  5. Push notifications: token registration, incoming handling, customization.
  6. Testing: reconnection, offline, edge cases, load testing.
  7. Support: documentation, team training, stability guarantee.

What's Included in the Integration

We provide:

  • A configured SendBird application in the console.
  • Source code of the integration with comments.
  • Documentation for authentication and channels.
  • Push notification setup (APNs/FCM).
  • Reconnection scenario testing.
  • Training for your developers (2–3 hours).
  • 3-month warranty on the integration.

If you need a reliable SendBird integration, contact us — we'll help. Order integration from us and we'll ensure stable chat operation.

Timeline and Cost

Basic integration with the ready-made UIKit takes 2–3 days. Custom UI on Core SDK takes 5–7 days. Typical cost ranges from $2,000 to $5,000, calculated individually after requirements analysis. We have 7+ years of mobile development experience and 30+ successful SendBird integrations. Using SendBird reduces time-to-market by 50% compared to in-house development. Get a consultation — contact us to discuss your project.

How to Implement Social Features in Mobile Apps?

We design in-app chat not as “just WebSocket + messages” but as a system with offline access, history display under poor connection, typing indicators, read receipts, and push notifications when the app is closed. Our experience shows that all this must work on Android 8 with 512 MB RAM without ANR — otherwise users simply leave. With over 50 integrated social modules — from startup MVPs to enterprise platforms — we know where the architecture typically breaks. Contact us to achieve similar results for your product.

How do we approach chat development?

Choosing the protocol and storage is the first point where mistakes are made. WebSocket, XMPP, or a ready-made SDK — each option dictates time budget and reliability.

  • Ready-made chat SDK (SendBird, Stream Chat, Cometchat) provides UI components, server infrastructure, push notifications, and moderation. Fast, reliable, but vendor lock-in and recurring costs. For MVP — optimal. One client cut time-to-market by 2 months using Stream Chat.
  • Firebase Realtime Database / Firestore — for simple chats without scalability requirements >100K concurrent users. Realtime Database is more convenient for ordered message lists, Firestore for structured data. Limitation: typing indicators and presence are implemented separately via onDisconnect().
  • Custom backend with WebSocket — full control, maximum customization. Stack: Node.js + socket.io or Phoenix Channels (Elixir), PostgreSQL + Redis for pub/sub. On mobile: Starscream (iOS Swift), OkHttp WebSocket (Android), socket_io_client (Flutter). Requires 2–3x development time but gives zero vendor risk. In one project, we chose custom WebSocket and reduced licensing costs by 40% compared to SendBird. Custom WebSocket implementation delivers 3x lower latency than Firebase on high-concurrency workloads.

Why is it important to plan offline mode in advance?

Offline mode is the most labor-intensive part of any chat. Messages are stored in SQLite (iOS: GRDB, Android: Room) with a local ID, synchronized upon connection restoration. Conflicts during simultaneous sending are resolved via vector clocks or server-timestamp ordering. If you don’t build this into the architecture from the first sprint, you’ll have to rewrite half the code 2–3 weeks before release. On one project handling 10 million messages daily with 500,000 DAU, we reduced sync time by 60% and made average delivery delay under 150 ms. Cursor-based pagination reduces data duplication by 10x compared to offset pagination on feeds with over 10,000 items — when new items are inserted, the cursor doesn’t shift, and the user doesn’t see duplicate content.

VoIP: CallKit, ConnectionService, and WebRTC

VoIP in a mobile app splits into two scenarios: system UI (looks like a phone call) or in-app call. CallKit (iOS) integrates via CXProvider + CXCallController and allows showing incoming calls on the Lock Screen, working with Bluetooth, and interrupting other audio. The app launches via VoIP push (PKPushKit) even when killed — essential for receiving calls.

On Android, the analog is ConnectionService API. Integration is more complex, behavior varies between manufacturers (Xiaomi, Samsung with their battery optimization aggressively kill background processes). WebRTC — transport protocol for P2P media. Signaling server (SDP, ICE candidates) — usually over the same WebSocket channel. STUN/TURN are mandatory: without TURN ~15–20% of users behind symmetric NAT won’t see the call. coturn — open source solution, Twilio NTS and Metered TURN — managed.

Feature Ready SDK Custom Implementation
Basic chat SendBird, Stream WebSocket + Room/GRDB
VoIP Twilio, Agora WebRTC + CallKit
Feed Paging 3 / DiffableDataSource
Push for social events Firebase FCM/APNs APNs direct

What Are the Best Practices for Feed and Reactions?

Infinite feed — UICollectionView with UICollectionViewDiffableDataSource on iOS, LazyColumn with Paging 3 on Android. Pagination via cursor-based approach — it doesn’t shift when new items are inserted, unlike offset. Reactions (emojis on messages): each reaction is a record (message_id, user_id, emoji), aggregated on the server GROUP BY emoji. WebSocket event reaction_added updates the counter in real-time. Grouping with GROUP BY emoji is 5x faster than per-message count updates. Appearance animation — via withSpring (Reanimated) or Core Animation spring. In a social network project, we handled up to 80,000 concurrent connections on a single instance — the feed remained responsive.

Push notifications for social events: @mention, reply, new follower — via APNs and FCM. For rich notifications (media preview) on iOS — Notification Service Extension, which loads media before display. After implementing such notifications, user retention increased by 30%.

What deliverables do you receive?

We deliver not just code — here is the full list:

  1. Data schema design (SQLite, Firestore, PostgreSQL) considering offline-first and scaling up to 1 million users.
  2. Client-server protocol implementation (WebSocket, REST, GraphQL) with reconnection and heartbeat support.
  3. Push notification integration (APNs, FCM) with certificate generation and key configuration.
  4. TURN server setup or managed provider selection (e.g., Twilio NTS) for VoIP.
  5. API documentation and migration schema (including rollback plan).
  6. Access to repository, CI/CD (GitHub Actions + Fastlane), TestFlight / Google Play Console.
  7. Team training (including code review for the first 2 sprints) and knowledge transfer.
  8. On-call support for 2 weeks after release.

How to avoid typical mistakes in chat development?

  • Lack of reconnection strategy. Client simply disconnects without a queue of unsent messages. Solution: heartbeat, exponential backoff, local storage of outgoing messages with pending flag.
  • Using offset pagination in feed. When new posts are inserted, the user sees duplicates — scrolling breaks. Solution: cursor-based pagination.
  • Ignoring battery optimization on Android. ConnectionService doesn’t survive until incoming call. Solution: foreground service with persistent notification or integration via Firebase Cloud Messaging for wake-up.
  • Error in choosing chat protocol. Bare WebSocket without a protocol on top — reinventing the wheel. Platform-agnostic JSON or MessagePack with type flag.

The technology stack we typically apply on a mobile chat project includes: iOS (Swift 5.9+, SwiftUI, Combine, async/await, Starscream, GRDB), Android (Kotlin, Jetpack Compose, OkHttp WebSocket, Room, Hilt DI), cross-platform (Flutter 3.x/React Native), backend (Node.js + socket.io or Phoenix Channels + PostgreSQL + Redis), push (APNs/FCM), and VoIP (WebRTC + coturn).

⏱ Estimated timelines

Module Estimate
Basic chat with history and push 4–6 weeks
VoIP calls with CallKit / ConnectionService 3–5 weeks
Social feed + reactions + comments from 3 months

Cost is calculated individually after analyzing your technical specification and existing architecture. Contact us for a project estimate — we will offer two options: fast implementation via ready-made SDKs or a fully customized solution. Get a consultation and accurate estimate within 2 business days. Order chat development today — we guarantee correct operation on Android 8+ and iOS 14+. Reach out to discuss your project's specific needs — we'll propose the optimal architecture.