Assist AR SDK
Integrate TeamViewer Assist AR into your app to provide AR remote support experiences.
Requirements
minSdkVersion
26or newerKotlin
2.2.0or newerJDK
21or newer
Usage
Apply Kotlin Plugin version
2.2.0or newerAdd the TeamViewer SDK repository to your repositories in
settings.gradle.kts:
dependencyResolutionManagement {
repositories {
maven {
url = uri("https://pkgs.dev.azure.com/TeamViewerMobileSDK/android/_packaging/android%40Release/maven/v1")
name = "teamviewerSdkCredentials"
credentials(PasswordCredentials::class)
authentication.create<BasicAuthentication>("basic")
}
}
}Add or edit the
gradle.propertiesfile in${user.home}/.gradleor the project directory. Generate a Personal Access Token with Packaging read scopes and paste it into thePERSONAL_ACCESS_TOKENplaceholder.
teamviewerSdkCredentialsUsername=TeamViewerMobileSDK
teamviewerSdkCredentialsPassword=PERSONAL_ACCESS_TOKENSample
You can find a sample of how to integrate the SDKs in Github: TravelApp
Assist AR SDK
The Assist AR SDK depends on the TeamViewer ScreenSharing SDK.
Add the following to your
build.gradle.kts:
dependencies {
implementation("com.teamviewer.sdk:assistar:<VERSION>")
}Have a look at the ScreenSharingWrapper in the sample app for next steps on how to configure the SDK and establish a TeamViewer session through the SDK.
Permissions
The following permissions will be automatically added:
android.permission.RECORD_AUDIOandroid.permission.CAMERAandroid.permission.WRITE_EXTERNAL_STORAGEfor Android Sdk 28 and below when file is received from expert/supporter side
Notification
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />needs to be added to your AndroidManifest.xml It is required to show an ongoing session notification during a call to keep the VoIP connection alive, even if the user puts your app to the background.Create a NotificationChannel in your app or reuse an existing one. The channel doesn't need a high priority or any ringing or vibration. It is designed to be a silent notification.
You don't need the
POST_NOTIFICATIONpermission if you don't want to show the notification at all on Android devices greater than Android 13.
import androidx.core.app.NotificationChannelCompat
import androidx.core.app.NotificationManagerCompat
val notificationChannel = NotificationChannelCompat.Builder("<Channel_ID>", NotificationManagerCompat.IMPORTANCE_LOW)
.setName("<Channel_Title>")
.setDescription("<Description>")
.build()
NotificationManagerCompat.from(this).createNotificationChannel(notificationChannel)