Platform | Version |
Flutter | 3.0.0 or later |
Android | Android Studio 3.5 or later; devices with Android 4.1 or later for apps |
iOS | Xcode 11.0 or later. For testing with a real device, ensure that your project has a valid developer signature. |
Platform | Support or Not |
iOS | Supported |
Android | Supported |
HarmonyOS NEXT | Supported from v8.5.6864+4 |
macOS | Supported from v4.1.9 |
Windows | Supported from v4.1.9 |
Web | Supported from v4.1.1+2 |
Hybrid development (Adding SDK for Flutter to existing native applications) | Supported from v5.0.0 |
Mobile App | Web - HTML5 |
iOS/Android App ![]() | Scan the QR code with your mobile phone to try out ![]() |
pubspec.yaml.flutter pub addflutter pub add tencent_cloud_chat_sdk
pubspec.yamldependencies:# You can check the latest version of the Chat SDK for Flutter on https://pub.dev/packages/tencent_cloud_chat_sdktencent_cloud_chat_sdk: "Latest version"
flutter pub get. If not, enter the command flutter pub get.android/app/ directory. Add the dependency to the dependencies block of your app-level build.gradle file.dependencies {// Ensure that the version matches the imsdk-plus version required by the tencent_cloud_chat_sdk dependency.api 'com.tencent.imsdk:timquic-plugin:version number'}
target 'Runner' do block.target 'Runner' do# Other configurations omitted# The version must match the TXIMSDK_Plus_iOS_XCFramework version required by the tencent_cloud_chat_sdk dependencypod 'TXIMSDK_Plus_QuicPlugin', 'version number'end
dependency_overrides:path_provider:git:url: "https://gitee.com/openharmony-sig/flutter_packages.git"path: "packages/path_provider/path_provider"
flutter create . in the root directory of the project to add web support.web/ directory of your project and use npm or Yarn to install related JS dependencies. To initialize the project, follow the on-screen instructions.cd webnpm initnpm i tim-js-sdknpm i tim-upload-plugin
web/index.html and import the JS files in <head> </head>. See below:<script src="./node_modules/tim-upload-plugin/index.js"></script><script src="./node_modules/tim-js-sdk/tim-js-friendship.js"></script>

flutter pub get/add fails?Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback