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 :
Import the SDK
Now in your Dart code, import the prebuilt Call Kit SDK.
Using the ZegoUIKitPrebuiltCall in your project
-
Go to ZEGOCLOUD Admin Console , get the
appID
andappSign
of your project. -
Specify the
userID
anduserName
for connecting the Call Kit service. -
Create a
callID
that represents the call you want to make. -
userID
andcallID
can only contain numbers, letters, and underlines (_). -
Users that join the call with the same
callID
can talk to each other.
Now, you can make a new call by navigating to this CallPage
.
Configure your project
Android
-
Modify the
compileSdkVersion
to 33 in theyour_project/android/app/build.gradle
file. -
Modify the
minSdkVersion
in the same file: -
Modify the
kotlin
version to >= 1.8.0 and thegradle classpath
version to 7.3.0 in theyour_project/android/app/build.gradle
file: -
Make the
gradle
version >= 7.0: In theyour_project/android/gradle/wrapper/gradle-wrapper.properties
file, modify thedistributionUrl
tohttps://services.gradle.org/distributions/gradle-7.4-all.zip
. -
Add app permissions.
Open the file
your_project/app/src/main/AndroidManifest.xml
, and add the following code: -
Prevent code obfuscation.
In your project's
your_project > android > app
folder, create aproguard-rules.pro
file with the following content as shown below:Add the following config code to the
release
part of theyour_project/android/app/build.gradle
file.
iOS
-
Add app permissions.
Open the
your_project/ios/Podfile
file, and add the following to thepost_install do |installer|
part: -
Open the
your_project/ios/Runner/Info.plist
file, and add the following to thedict
part: -
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
.
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.
Related guide and resources