-
Notifications
You must be signed in to change notification settings - Fork 71
Installation
Meher edited this page Jun 18, 2021
·
1 revision
In your Flutter application, add the agora_uikit
as a dependency inside your pubspec.yaml
file:
dependencies:
agora_uikit:
Run flutter pub get
from the root directory of your project to install the dependencies.
In your Android level build.gradle
add this at the end of the repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Agora Video SDK requires camera
and microphone
permission to start video call.
Open the AndroidManifest.xml
file and add the required device permissions to the file.
<manifest>
...
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!-- The Agora SDK requires Bluetooth permissions in case users are using Bluetooth devices.-->
<uses-permission android:name="android.permission.BLUETOOTH" />
...
</manifest>
Open info.plist
and add:
-
Privacy - Microphone Usage Description
, and add a note in the Value column. -
Privacy - Camera Usage Description
, and add a note in the Value column.
Your application can still run the voice call when it is switched to the background if the background mode is enabled. Select the app target in Xcode, click the Capabilities tab, enable Background Modes, and check Audio, AirPlay, and Picture in Picture.