Plivo Android SDK

The Plivo Android SDK allows you to create applications capable of making and receiving calls in your Android app. This SDK support both IPv4 and IPv6 Networks, that means you can make and receive calls when your device is connected to a network that uses IPv4, IPv6, or both versions of the protocol. The SDK currently supports Android version 6 and above.

Prerequisites

To get started, below are some prerequisites:

  1. Register for a Plivo account. You need a Plivo account to create endpoints and PHLO.

  2. Create a Plivo endpoint. An endpoint facilitates making and receiving calls from the Android client. For more information on what an endpoint is and where it can be used, see the endpoint tutorial. Create an endpoint as required. You can automate the creation of endpoints if required using our REST API. Please refer to our API documentation for endpoint for more details.

  3. Download the latest version of Android studio from https://developer.android.com/studio/

  4. You must create a PHLO and link it with your endpoint. Plivo High-Level Object (PHLO) is a collaborative way of building and deploying apps visually.

Getting started with Plivo Android SDK

To create VoIP enabled Android app:

  1. Install Android studio

  2. Download the binary and add to your app/libs.

    -Alternatively, you can also include the following script into your app/build.gradle file:

         dependencies {
            implementation 'com.plivo.endpoint:plivoendpoint:2.0.4@aar'
         }
    
     and include jcenter() in your parent build.gradle
    
         allprojects {
            repositories {
                jcenter()
            }
         }
    
  3. Use our Android SDK examples as a starting point to create your app.

  4. Refer to Android SDK reference for more information on creating applications capable of making and receiving calls in your app.

  5. To set up incoming calls with push notifications, see Setting up Push credentials

  6. Use our Best practices guide to build the Android app efficiently.

  7. To debug the basic call related issues, see Troubleshooting guide