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, follow the instructions in the SDK documentation.
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:
0941553efaf1737e6877aa1a7af4e7bffad69b382d8bf478613f5c1a8c69f192
Twilio Conversations is available from Maven Central.
To install via Gradle, include the following in your Gradle build file:
1allprojects {2repositories {3mavenCentral()4}5}67/**8* Declare dependencies9* @see http://www.gradle.org/docs/current/userguide/userguide_single.html#sec:how_to_declare_your_dependencies10*/11dependencies {12implementation 'com.twilio:conversations-android:6.1.1'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:
1android {2...3compileOptions {4sourceCompatibility JavaVersion.VERSION_1_85targetCompatibility JavaVersion.VERSION_1_86}7...8}
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:
https://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.