The SendBirdCalls
framework enables realtime VoIP communication between app users. This repository contains a sample application intended to demonstrate a simple implementation of this framework. This readme document details how to get up and running using this sample application.
- Android 4.1 (API level 16) or later
- Login or Sign-up for an account at dashboard.
- Create or select an application on the SendBird Dashboard.
- Note the
Application ID
for future reference. - Contact sales to get the
Calls
menu enabled in the dashboard. (Self-serve coming soon.)
- In the SendBird dashboard, navigate to the
Users
menu. - Create at least two new users, one that will be the
caller
, and one that will be thecallee
. - Note the
User ID
of each user for future reference.
To connect this sample Android application to the SendBird application specified in the previous step, the Application ID of the SendBird application must be specified inside the sample Android application’s source code.
Replace YOUR_APPLICATION_ID
with the Application ID
of the SendBird application created previously.
public class BaseApplication extends Application {
...
private static final String APP_ID = "YOUR_APPLICATION_ID";
...
}
- Build and run the application. Refer to Android Documentation.
- The application must be installed onto two separate devices. (one
caller
and onecallee
) - If two test devices are not available, the application can be run on an emulator.
- Log in to the primary device’s sample application with the ID of the user designated as the
caller
. - Log in to the secondary device’s sample application with ID of the user designated as the
callee
. Alternatively, use the Calls widget found on the Calls dashboard to login as thecallee
. - On the primary device, specify the user ID of the
callee
and initiate a call. - If all steps have been followed correctly, an incoming call notification will appear on the
callee
user’s device. - Reverse roles, and initiate a call from the other device.
- If the
caller
andcallee
devices are near each other, use headphones to prevent audio feedback. - The SendBird Calls Android Sample has been successfully implemented.