Sendbird - Messaging and Chat API for Mobile Apps and Websites
Sendbird provides the chat API and SDK for your app enabling real-time communication among your users.
Add below into your Podfile on Xcode.
platform :ios, '8.0'
use_frameworks!
target YOUR_PROJECT_TARGET do
pod 'SendBirdSDK'
end
Install Sendbird Framework through CocoaPods.
pod install
Now you can see installed Sendbird framework by inspecting YOUR_PROJECT.xcworkspace.
- Add
github "sendbird/sendbird-ios-framework"to yourCartfile. - Run
carthage update. - Go to your Xcode project's "General" settings. Open
<YOUR_XCODE_PROJECT_DIRECTORY>/Carthage/Build/iOSin Finder and dragSendBirdSDK.frameworkto the "Embedded Binaries" section in Xcode. Make sureCopy items if neededis selected and clickFinish. - On your application targets’
Build Phasessettings tab, click the + icon and chooseNew Run ScriptPhase. Create a Run Script in which you specify your shell (ex:/bin/sh), add the following contents to the script area below the shell:
/usr/local/bin/carthage copy-frameworks
- Add the paths to the frameworks you want to use under “Input Files". For example:
$(SRCROOT)/Carthage/Build/iOS/SendBirdSDK.framework
- Add the paths to the copied frameworks to the “Output Files”. For example:
$(BUILT_PRODUCTS_DIR)/$(FRAMEWORKS_FOLDER_PATH)/SendBirdSDK.framework
For an in depth guide, read on from Adding frameworks to an application
SyncManager SDK is a support add-on for Sendbird SDK. Major benefits of SyncManager are,
- Local cache integrated: store channel/message data in local storage for fast view loading.
- Event-driven data handling: subscribe channel/message event like
insert,update,removeat a single spot in order to apply data event to view.
Check out iOS Sample with SyncManager which is same as iOS Sample with SyncManager integrated.
For more information about SyncManager integrated, please refer to SyncManager README.