Calling config
Invitation config
Advanced Features
APIs and Events Referencelink
Migration Guide - v4.xlink
Powered Byspreading
directory
pageON THIS PAGE

Quick start

TIPS

If you need the call invitation feature, the integration method is different. Please refer to this document.

Integrate the SDK

Add ZegoUIKitPrebuiltCall as dependencies

Run the following code in your project root directory :

Copy

Import the SDK

Now in your Dart code, ​​​​​​​​​​​​​​​​​import the prebuilt Call Kit SDK.

Copy

Using the ZegoUIKitPrebuiltCall in your project

  • Go to ZEGOCLOUD Admin Console , get the appID and appSign of your project.

  • Specify the userID and userName for connecting the Call Kit service.

  • Create a callID that represents the call you want to make.

  • userID and callID can only contain numbers, letters, and underlines (_).

  • Users that join the call with the same callID can talk to each other.

Copy

Now, you can make a new call by navigating to this CallPage.

Configure your project

Android

  1. Modify the compileSdkVersion to 33 in the your_project/android/app/build.gradle file.

    null
  2. Modify the minSdkVersion in the same file:

    Copy
    null
  3. Modify the kotlin version to >= 1.8.0 and the gradle classpath version to 7.3.0 in the your_project/android/app/build.gradle file:

    Copy
  4. Make the gradle version >= 7.0: In the your_project/android/gradle/wrapper/gradle-wrapper.properties file, modify the distributionUrl to https://services.gradle.org/distributions/gradle-7.4-all.zip.

    Copy
    null
  5. Add app permissions.

    Open the file your_project/app/src/main/AndroidManifest.xml, and add the following code:

    Copy
    null
  6. Prevent code obfuscation.

    In your project's your_project > android > app folder, create a proguard-rules.pro file with the following content as shown below:

    Copy

    Add the following config code to the release part of the your_project/android/app/build.gradle file.

    Copy

iOS

  1. Add app permissions.

    Open the your_project/ios/Podfile file, and add the following to the post_install do |installer| part:

    Copy
    null
  2. Open the your_project/ios/Runner/Info.plist file, and add the following to the dict part:

    Copy
    null
  3. Disable Build Libraries for Distribution

    Open the your_project > iOS > Runner.xcworkspace file.

    Select your target project, and follow the notes on the following image to disable the Build Libraries for Distribution.

    null

Run & Test

Now you have finished all the steps!

You can simply click the Run or Debug to run and test your App on your device.

null

Related guide and resources

pageON THIS PAGE
backBack to top