logo
In-app Chat
SDK Error Codes
Powered Byspreading
On this page

Integrate the ZIM Audio SDK

This topic describes how to integrate the ZIM Audio SDK.

Prerequisites

Before you integrate the ZIM Audio SDK, make sure that the following conditions are met:

  • Development environment:
    • Flutter or later is installed.
    • Dart is installed and the version is [2.12.0, 4.0.0).
    • The test device meets the following requirements:
      • iOS 11.0 or above iOS real phones.
      • For real Android devices running Android 4.1 or above, please turn on the "Allow debugging" option.

Import the ZIM Audio SDK

  1. Open the "pubspec.yaml" file, in the "pub" format, and add the "zego_zim_audio" dependency:
Untitled
dependencies:
    # Please check the latest version of the SDK from the release log and modify x.y.z to the specific version number.
    zego_zim_audio: ^x.y.z
1
Copied!
  1. After adding and saving the file, execute flutter pub get in the terminal.

Setting permissions

Before using ZIM Audio SDK, please set microphone permissions to collect voice.

Prevent confusion

If you use the Flutter framework to develop Android applications, you also need to add the "-keep" class configuration to the SDK in the "proguard-rules.pro" file to prevent confusion with the SDK public class names.

Untitled
-keep class **.zego.**{*;}
1
Copied!

Previous

Overview

Next

Send and receive audio messages