Transcend Docs

Mobile Consent - Android Quickstart

Setting up consent for your Android applications

Overview

We provide an Android library hosted on Maven Central to minimize the modifications needed by our customers in their applications. The library, com.transcend.webview:webview:VERSION, contains the majority of the logic for saving TCF-related data and interacting with the organization-specific mobile/bridge.js which handles displaying the UI and passing information between the WebView and the SDK. Below is a list of steps necessary to utilize the Transcend WebView library:

Note

The minimum airgap.js version required for this is 8.32.0. You can upgrade your aigrap version in the Admin Dashboard. Don't forget to publish the change!

Include Our Library

Build.gradle

Add the following dependencies on your app modules build.gradle file and install the following Android dependencies:

dependencies {
  implementation 'io.transcend.webview:webview:1.1.2'
}

Active Versions

Active versions are listed below:

  • v1.1.13: Minimum airgap.js version required is 9.61.1.
  • v1.1.4: Minimum airgap.js version required is 9.18.1.
  • v1.1.2: Minimum airgap.js version required is 8.37.2.
  • v1.0.6: Minimum airgap.js version required is 8.32.0.

ProGuard rules

To ensure that the classes and members of the io.transcend.webview package are not obfuscated or removed by ProGuard, it's recommended to include the following ProGuard rule in your ProGuard configuration file (proguard-rules.pro):

-keep class io.transcend.webview.** { *; }

We have a full sample Android application that you can view on GitHub. Kotlin users, can refer the following branch on GitHub.

Size

The compiled Android library (AAR) size is approximately 83 KB.

On this page