This document describes how to quickly run the IM demo for Flutter.
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. Ensure that your project has a valid developer signature. |
You have signed up for a Tencent Cloud account and completed identity verification.
Note:If you already have an app, record its SDKAppID and obtain key information.
A Tencent Cloud account can create a maximum of 300 IM apps. If you want to create a new app, disable and delete an unwanted app first. Once an app (along with its SDKAppID) is deleted, the provided service and all its data are lost. Please proceed with caution.
Flutter pub get
to install the dependencies, launch the demo project, and enter the following command:flutter run --dart-define=SDK_APPID=xxxx --dart-define=ISPRODUCT_ENV=false --dart-define=KEY=xxxx
Note:
>? The UI of the latest version of the demo may look different after adjustments.
Currently, iOS, Android, and web platforms are supported. In addition, the editions for Windows and macOS are under development. Please stay tuned.
Check that the device is not occupied by other resources. Alternatively, click Build to generate an APK package, drag it to the simulator, and run it.
If an error is reported for an iOS device after the demo configured as above is run, choose Product > Clean to clean the product, and build the demo again. You can also close Xcode and open it again, and then build the demo again.
If you want to check the Flutter environment, run Flutter doctor
to detect whether the Flutter environment is ready.
Was this page helpful?