Twilio provides client-side Conversations SDKs for browser-based web applications, as well as for native iOS and Android applications.
The latest version of the JavaScript SDK for Conversations is available on Twilio's CDN. To include it on your web page, simply add a <script>
tag mentioned in the change log section for the version you're interested in.
The Twilio.Conversations
namespace will then be available in the window scope of your JavaScript application.
The JS Conversations SDK is also available from NPM.
Want to see the JS Conversations SDK in action? Check our Conversations React Demo App! The app demonstrates a basic conversations client application with the ability to create and join conversations, add other participants into the conversations, and exchange messages.
The Twilio Conversations Android SDK is distributed as a direct download from Twilio's CDN. It can also be installed via Maven or directly within a Gradle build file using Maven Central.
Download the Twilio Conversations Client library for Android from the Twilio CDN. The download's SHA-256 is:
_10da05aa0c64a64f9d27890f16eaa9ba146ee828c41460361098ad66c7d47a5cb9
Twilio Conversations is available from Maven Central.
To install via Gradle, include the following in your Gradle build file:
_13allprojects {_13 repositories {_13 mavenCentral()_13 }_13}_13_13/**_13 * Declare dependencies_13 * @see http://www.gradle.org/docs/current/userguide/userguide_single.html#sec:how_to_declare_your_dependencies_13 */_13dependencies {_13 implementation 'com.twilio:conversations-android:6.0.4'_13}
Your Android project needs compatibility with Java 8 language features. If you have not already done so, add the following section to the android
module in your build.gradle
file:
_10android {_10 ..._10 compileOptions {_10 sourceCompatibility JavaVersion.VERSION_1_8_10 targetCompatibility JavaVersion.VERSION_1_8_10 }_10 ..._10}
Want to see the Android Conversations SDK in action? Check our Conversations Kotlin Demo App! The app demonstrates a basic conversations client application with the ability to create and join conversations, add other participants into the conversations, and exchange messages.
The Conversations SDK for iOS is available through the Swift Package Manager dependency manager.
Package manager support for iOS SDK has shifted from CocoaPods and Carthage towards Swift Package Manager as the universal and the best-supported option.
We do not currently support the Carthage package manager and/or CocoaPods.
To install the SDK with Swift Package Manager, add the following dependency to your project:
_10https://github.com/twilio/conversations-ios
https://github.com/twilio/conversations-ios
into the search field.
That's it!
Want to see the iOS Conversations SDK in action? Check our Conversations Swift Demo App! The app demonstrates a basic conversations client application with the ability to create and join conversations, add other participants into the conversations, and exchange messages.