uni-app (UTS plug-in)

更新时间:
复制 MD 格式

This topic describes how to quickly integrate the Real-Time Communication software development kit (SDK) UTS plug-in in a uni-app project.

Prerequisites

  • You must have the latest version of HBuilderX installed. For more information, see HBuilderX.

Environment requirements

  • iOS 12 or later.

  • Android 5.0 or later.

  • HarmonyOS 5.0 or later.

Integrate the SDK

  1. Download the sample code (the UniApp folder): https://github.com/aliyun/AliRTCSample/tree/master/UniApp

    Note

    Download or clone the repository. Run the sample to ensure it works before you migrate it to your project.

  2. Copy the DingTalk-DingRTC plug-in from the `uni_modules` folder to the plug-in folder of your project.

  3. Download and decompress the SDK for your target platform. For more information, see SDK downloads.

  4. Add the SDK files to the folders for the corresponding platforms:

    iOS: Copy the `.framework` or `.xcframework` file to the `/DingTalk-DingRTC/utssdk/app-ios/Frameworks/` folder.

    Android: Copy the `.aar` file to the `/DingTalk-DingRTC/utssdk/app-android/libs/` folder.

    HarmonyOS: Copy the `.har` file to the `/DingTalk-DingRTC/utssdk/app-harmony/libs/` folder.

  5. Run the project on your target platform.

What to do next

After integrating the SDK, you can implement basic real-time communication features. For more information, see Implement basic features in uni-app (UTS plug-in).