Skip to content

videosdk-live/videosdk-rtc-android-java-call-trigger-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Android Call Trigger with VideoSDK

In this guide, we’ll walk you through setting up and running a native Android video calling app. Follow these steps to get the project up and running smoothly.

Client

Step 1: Clone the sample project

Clone the repository to your local environment.

https://github.com/videosdk-live/videosdk-rtc-android-java-call-trigger-example.git

Android Setup

Step 1: Add VideoSdkAuthToken to MainApplication class

  • Add your VideoSDK authentication token to your MainApplication class. You can obtain your token from the VideoSDK dashboard

Step 2: Setup Firebase

FCM setup

  • Replace your firebase app google-services.json file in the app folder.

plot

Step 3: Allow calling and overlay permissions

1. Access phone accounts permission

You need to grant call account permissions to enable VideoSDK to make and receive calls.

calling accounts

Click on All calling accounts and allow the app to receive call.

NOTE : It is necesary to setup local server before run the project.

Server Setup

Step 1: Go to server folder

Step 2: Setup Firebase Admin SDK for managing FCM

Download private Key from firebase and add the .json file in the server folder. plot

Step 3: Configure Firebase Admin in Server Code

// Path to your service account key file for Firebase Admin SDK
var serviceAccount = require("add_path_here");
admin.initializeApp({
  credential: admin.credential.cert(serviceAccount),
  databaseURL: "database_url" // Replace with your database URL
});

Step 4: Install Package and start server

npm install
npm run start

Step 4: Add local server url in client

Add Local server ip address in Network/ApiClient.java file, eg. "http://192.168.1.10:9000".

const FCM_SERVER_URL = "BASE_URL";

Issue

You can generate the issue on Github or ping us on Discord

Other Information

Tested on Devices

  • Nothing device

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •