1 min read

OneTrust

OneTrust is a comprehensive platform for privacy, security, and governance (GRC) that helps organizations automate compliance with regulations such as GDPR, CCPA, the EU AI Act, and ISO 27001.

To integrate OneTrust into your application, follow these steps:

  1. Include the OneTrust PoqSDK in your build.gradle:

    implementation ("com.poqstudio:privacy.onetrust:$VERSION_NAME")

  2. Configure OneTrust settings: Set all required IDs in the OneTrustSettings object.

  3. Verify the SDK version: Ensure the SDK version published in the OneTrust console matches the version used by Poq platform. The version can be checked on OneTrust console -> Integrations (left side menu) -> SDKs -> Access the target application -> SDK Tab -> Published Version (right side panels).

  4. Scan the production APK: After completing the integration, you’ll need to upload a production-ready APK for scanning:

    4.1. Generate a production-ready APK of your project.

    4.2. On OneTrust console -> Digital Properties (left side menu) -> Mobile Apps -> Access the target application -> Scan Results Tab -> Scan Now -> Upload the generated APK.

Poq Settings

The OneTrust PoqSDK is configurable via OneTrustSettings. Through OneTrustSettings you can configure:

  • domainUrl: Domain URL.
  • domainId: Domain Id.
  • languageCode: The primary language used in OneTrust SDK screens.
  • otSdkParams: Additional OneTrust SDK parameters. Detailed information can be found here.

You can find the required values (Domain URL, Domain ID, and Base Language Code) in OneTrust console -> Integrations (left side menu) -> SDKs -> Access the target application -> Instructions Tab -> To Implement the Test/Production SDK section.

If your target application is not listed, you may need to create it first: OneTrust console -> Digital Properties (left side menu) -> Mobile Apps -> Add Mobile App

OneTrust Poq SDK provides one new deep link:

://onetrust-preference-center: it opens the OneTrust Preferences Center screen.