Installing the Daily Client SDK for Android

The Daily Client SDK for Android is currently in beta. We appreciate any feedback you have related to using it.

There are currently two options available for installing the Daily Client SDK for Android:

Minimum SDK version

The Daily Client SDK for Android requires a minSdkVersion of 23 or greater.

Maven

In your top-level build.gradle file, add the Maven Central repository:

repositories {
// ...
mavenCentral()
}

In your app’s build.gradle file, add the Daily Client SDK dependency:

dependencies {
// ...
implementation 'co.daily:client:0.1.1'
}

Direct AAR download

If you prefer not to use Maven, you can download and add the Daily Client SDK AAR to your project directly. Download it from https://www.daily.co/sdk/daily-client-android-0.1.1.zip, and unzip it.

Move the .aar file from the zip somewhere into your project, like a libs folder.

Update your app’s build.gradle to include the Daily Client SDK for Android:

dependencies {
// ...
implementation files('path/to/aar/daily-client-android.aar')
}

App setup

Make sure the following permissions are in your app’s AndroidManifest.xml:

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />

Continuing calls in the background

In order to give your app the ability to continue running calls while in the background, you can start a foreground service that shows an in-call notification while your call is active.

You can read more about foreground services in the Android documentation.

For an example of a foreground service that customizes and shows a notification, see the one that is bundled with react-native-daily-js.


To learn more about building an app with the Daily Client SDK for Android, see our mobile SDK guide and Android demo app.