Platform | Version |
Flutter | 2.2.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 |
Supported from v4.1.1+2 | |
Supported from v4.1.9 | |
Supported from v4.1.9 | |
Hybrid development (Adding SDK for Flutter to existing native applications) | Supported from v5.0.0 |
Mobile App | Web - HTML5 |
iOS/Android app (automatically downloaded according to your platform)![](https://qcloudimg.tencent-cloud.cn/raw/ca2aaff551410c74fce48008c771b9f6.png) | Scan the QR code with your mobile phone to try out![](https://qcloudimg.tencent-cloud.cn/raw/3c79e8bb16dd0eeab35e894a690e0444.png) |
pubspec.yaml
.flutter pub add
flutter pub add tencent_cloud_chat_sdk
pubspec.yaml
dependencies:tencent_cloud_chat_sdk: "Latest version" // You can check the latest version of the Chat SDK for Flutter on https://pub.dev/packages/tencent_cloud_chat_sdk
flutter pub get
. If not, enter the command flutter pub get
.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 add tencent_im_sdk_plugin_web
flutter pub add tencent_im_sdk_plugin_desktop
macos/Runner/DebugProfile.entitlements
file.<dict></dict>
, add the following key-value pair:<key>com.apple.security.app-sandbox</key><false/>
flutter pub get/add
fails?
Was this page helpful?