We recommend clients to plan their migration to SDK v4 and Local caching embeded in v4 as early as possible as there are breaking changes. We also provide prioritized support for migration and any issues related to v4. SDK v4 provides far richer and robust features in Websocket, Polls, Scheduled Messages, Pinned Message, and many more. So try it out now! (Chat SDK v4 Local caching samples)
SyncManager for iOS is a Chat SDK add-on that optimizes the user caching experience by interlinking the synchronization of the local data storage with the chat data in Sendbird server through an event-driven structure. Provided here is a SyncManager for iOS sample to experience first-hand the benefits of Sendbird’s SyncManager.
Sendbird SyncManager provides the local caching system and data synchronization with the Sendbird server, which are run on an event-driven structure. According to the real-time events of the messages and channels, SyncManager takes care of the background tasks for the cache updates from the Sendbird server to the local device. By leveraging this systemized structure with connection-based synchronization, SyncManager allows you to easily integrate the Chat SDK to utilize all of its features, while also reducing data usage and offering a reliable and effortless storage mechanism.
Find out more about Sendbird SyncManager for iOS at SyncManager for iOS doc. If you need any help in resolving any issues or have questions, visit our community.
This section provides the prerequisites for testing Sendbird SyncManager for iOS sample app.
The minimum requirements for SyncManager for iOS are:
- iOS 8.0+
- Chat SDK for iOS is 3.0.178 or higher
If you would like to try the sample app specifically fit to your usage, you can do so by replacing the default sample app ID with yours, which you can obtain by creating your Sendbird application from the dashboard. Furthermore, you could also add data of your choice on the dashboard to test. This will allow you to experience the sample app with data from your Sendbird application.
This section explains the steps you need to take before testing the iOS sample app.
Create a project to get started: Sendbird SyncManager for iOS supports both Objective-C
and Swift
.
You can install SyncManager for iOS sample app through either CocoaPods or Carthage.
Note: Sendbird SyncManager for iOS is Sendbird Chat SDK-dependent. If you install the SyncManager, CocoaPods and Carthage will automatically install the Chat SDK for iOS.
- Add below into your
Podfile
on Xcode.
platform :ios, '8.0'
use_frameworks!
target YOUR_PROJECT_TARGET do
pod 'SendBirdSyncManager'
end
- Install the Sendbird SyncManager framework through CocoaPods.
pod install
- Update the Sendbird SyncManager framework through CocoaPods.
pod update SendBirdSyncManager
Now you can see the installed Sendbird SyncManager framework by inspecting YOUR_PROJECT.xcworkspace
.
- Add
github "sendbird/sendbird-syncmanager-ios"
to yourCartfile
. - Run
carthage update
. - Go to your Xcode project's General settings. Open
<YOUR_XCODE_PROJECT_DIRECTORY>/Carthage/Build/iOS
in the Finder and dragSendBirdSyncManager.framework
to the Embedded Binaries section in Xcode. Make sure Copy items if needed is selected and click Finish.