Reve Systems Voice Call sdk in your custom Android App
How To configure and use Follow the Steps below to Implement the Reve Voice Android SDK for your own Dialer App
Step 1.Gradle: Firstly you have to add the gradle dependency in your app’s build.gradle file. You can add the following line inside the dependencies{} tab to the aforementioned file to get access to the necessary packages. Sync your project after that.
api 'com.revesoft.sdk:reveSdk:1.6.1-4' .
Step 2. Configuration: In this step you need to configure the AppConfig according to the Configuration provided to you by Reve Systems. Check out the Detailed Configuration Guide
Step 3. Setting User Credentials: Set the username and Password of the end user in UserInfo class. Taking these two pieces of information from the UI is recommended.
UserInfo.setUsername(AppUI.getusername())
UserInfo.setPassword(AppUI.getSipPassword())
Step 4. Starting the Call Functionalities At this stage The configuration of the App is complete. Now you can start to activate the functionalities of this sdk. You have to get an instance sipwrapper of the Class SIPWrapper and then call the function sipwrapper.restartSIP(context: Context, appConfig:AppConfig)
. This method starts the components that lets you start/receive and end calls. Here context should be the default applicationContext and the appConfig is what you created in Step 2.
If all the configuration is ok, this function will start the core components of this sdk. You have to make sure that you are using the exact configuration provided by Reve Systems. You call this method inside an activity or a service.
Step 5. Call Handling: Check out the Call Handling guide for Handling the calls using this sdk.
Step 6. Permission: Make sure your app has permission to record Audio. Otherwise no audio data will be sent via this app.