We recommend clients to plan their migration to SDK 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, Local caching, Polls, Scheduled Messages, Pinned Message, and many more. So try it out now! (Chat SDK v4 samples)
Sendbird provides the chat API and SDK for your app, enabling real-time communication among the users. Here are various samples built using Sendbird Chat SDK.
-
Chat sample has core chat features. Group channel and open channel are the two main channel types in which you can create various subtypes where users can send and receive messages. This sample is written in Java with Sendbird Chat SDK.
-
Chat (Local Caching) sample has core chat features with local caching enabled. It only supports group channel in which you can create various subtypes where users can send and receive messages. This sample is written in Java with Sendbird Chat SDK.
-
SyncManager sample is equipped with a local cache along with core chat features. For faster data loading and caching, the sample synchronizes with the Sendbird server and saves a list of group channels and the messages within the local cache into your client app. This sample is written in Java with Sendbird SyncManager and Sendbird Chat SDK. Find more about SyncManager on Sendbird SyncManager document.
When a new Sendbird application is created in the dashboard the default security settings are set permissive to simplify running samples and implementing your first code.
Before launching make sure to review the security tab under ⚙️ Settings -> Security, and set Access token permission to Read Only or Disabled so that unauthenticated users can not login as someone else. And review the Access Control lists. Most apps will want to disable "Allow retrieving user list" as that could expose usage numbers and other information.
To use our Android samples, you should first install Chat SDK for Android 3.0.96 or higher on your system.
Sample | Android | Java | Gradle |
---|---|---|---|
Chat | 4.1 (API level 16) or higher | 7 or higher | 3.4.0 or higher |
Chat (Local Caching) | 4.1 (API level 16) or higher | 7 or higher | 3.4.0 or higher |
SyncManager | 4.1 (API level 16) or higher | 7 or higher | - |
You can clone the project from the Chat sample repository.
// Clone this repository
git clone git@github.com:sendbird/SendBird-Android.git
// Move to the Chat sample
cd SendBird-Android/basic
You can clone the project from the Chat sample repository.
// Clone this repository
git clone git@github.com:sendbird/SendBird-Android.git
// Move to the Chat sample
cd SendBird-Android/local-caching
You can clone the project directly from the SyncManager sample repository.
// Clone this repository
git clone git@github.com:sendbird/SendBird-Android.git
// Move to the SyncManager sample
cd SendBird-Android/syncmanager