Skip to main content

Minimum SDK version

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

Installing using Maven

In your top-level build.gradle file, add the Maven Central repository:
In your app’s build.gradle file, add the Daily Client SDK dependency:
Optionally, to use the camera video processor (for background blur and replacement), also add the following dependency:

App setup

Make sure the following permissions are in your app’s AndroidManifest.xml:
The foregroundServiceType phoneCall, camera and microphone are needed in order to give your app the ability to continue running calls while in the background
The foregroundServiceType mediaProjection is only needed if you wish to do screen sharing.
MODIFY_AUDIO_SETTINGS has to be declared by your app. The SDK’s own manifest does not declare it, so nothing adds it for you.If it is missing, calls that change the audio route (such as setAudioDevice()) still report success, but the sound keeps playing from the old device. There is no error to catch. If your app switches to the speaker, the earpiece, or a Bluetooth headset and the audio does not follow, check this permission first.

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 Android Overview and Android demo app.