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.
Documentation
Install Sendbird Framework from CocoaPods
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.
Install Sendbird Framework from Carthage
- 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/iOS
in Finder and dragSendBirdSDK.framework
to the "Embedded Binaries" section in Xcode. Make sureCopy items if needed
is selected and clickFinish
. - On your application targets’
Build Phases
settings tab, click the + icon and chooseNew Run Script
Phase. 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
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
,remove
at 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.