This repository contains a demo Android application designed to showcase and test the functionalities of the SightCall Classic SDK. The app demonstrates how to effectively integrate the Classic SDK into an Android project.
For detailed documentation and guidance on the SDK, refer to the official SightCall Android SDK documentation.
Before proceeding with the integration, ensure that your project meets the following requirements:
-
Minimum SDK Version:
minSdkVersion 26 -
AndroidManifest Configuration:
If your project includesandroid:allowBackup="false"in the<application>element of yourAndroidManifest.xml, you may need to add the following attribute to avoid conflicts:<application tools:replace="android:allowBackup">
-
Add the Maven repository for SightCall SDK:
maven("https://sightcall-maven.s3.amazonaws.com") -
In your
libs.versions.tomlfile, define the SDK version and dependency configuration:[versions] sightcallSdk = "7.5.2" # Replace with the latest version [libraries] sightcall-sdk = { group = "com.sightcall.universal", name = "universal-sdk", version.ref = "sightcallSdk" }
-
Add the dependency to your app-level
build.gradlefile:implementation(libs.sightcall.sdk)
If you're not using the Gradle Version Catalog, follow these steps to add the SDK directly:
-
Add the Maven repository for SightCall SDK:
allprojects { repositories { maven { url "https://sightcall-maven.s3.amazonaws.com" } } }
-
Add the dependency to your app-level
build.gradlefile:dependencies { implementation "com.sightcall.universal:universal-sdk:7.7.1" // Replace with the latest version }'
Ensure that your AndroidManifest.xml file includes the necessary permissions for the SightCall SDK according the needed feature.
The demo app's manifest file is already configured with the required permissions.
the full list of permission
```kotlin
<!-- universal sdk permissions -->
<!-- full screen call style notification -->
<uses-permission android:name="android.permission.USE_FULL_SCREEN_INTENT" />
<!-- screen share -->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" />
<!--location permission-->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<!-- Use overlay -->
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<!-- universal sdk permissions -->
Ensure your application's theme inherits from a MaterialComponents theme, for example, Theme.MaterialComponents.Light.NoActionBar. You can define this in your themes.xml file:
```xml
<resources>
<style name="Theme.YourAppName" parent="Theme.MaterialComponents.Light.NoActionBar">
<!-- Other theme attributes -->
</style>
</resources>
To start the call : paste the call link in main activity then click Launch Call, the call is started using :
Universal.start(uri)