Edit in GitHubLog an issue

Adobe Experience Platform Assurance extension

This extension enables capabilities for Adobe Experience Platform Assurance.

To get started with Assurance in your app, you'll need to:

  1. Install the AEP Assurance extension in the Data Collection UI
  2. Add AEP Assurance SDK extension library to your app
    1. Import AEP Assurance into your app
    2. Register and implement extension APIs

Install the AEP Assurance extension in the Data Collection UI

Go to the Experience Platform Data Collection UI and select your mobile property:

  1. In the Data Collection UI, select the Extensions tab.
  2. On the Catalog tab, locate the AEP Assurance extension, and select Install.
  3. Follow the publishing process to update the Mobile SDK configuration.

assurance extension

Add the AEP Assurance extension to your app

Import the library to your app code

  1. Add the following libraries to your project using the app's Gradle file.

Kotlin

Copied to your clipboard
implementation(platform("com.adobe.marketing.mobile:sdk-bom:3.+"))
implementation("com.adobe.marketing.mobile:core")
implementation("com.adobe.marketing.mobile:assurance")

Groovy

Copied to your clipboard
implementation platform('com.adobe.marketing.mobile:sdk-bom:3.+')
implementation 'com.adobe.marketing.mobile:core'
implementation 'com.adobe.marketing.mobile:assurance'
  1. Import the Assurance library along with the other Mobile SDK libraries:
Copied to your clipboard
import com.adobe.marketing.mobile.Assurance;
import com.adobe.marketing.mobile.MobileCore;

Register AEPAssurance with Mobile Core

The MobileCore.registerExtensions() API can be used to register the Assurance extension with the Mobile Core extension. This API allows the extension to send and receive events to and from the Mobile SDK.

  1. Import the Assurance library along with the other Mobile SDK libraries:
Copied to your clipboard
import com.adobe.marketing.mobile.Assurance;
import com.adobe.marketing.mobile.MobileCore;

Java

Copied to your clipboard
public class MainApp extends Application {
private final String ENVIRONMENT_FILE_ID = "YOUR_APP_ENVIRONMENT_ID";
@Override
public void onCreate() {
super.onCreate();
MobileCore.setApplication(this);
MobileCore.setLogLevel(LoggingMode.VERBOSE);
MobileCore.configureWithAppID(ENVIRONMENT_FILE_ID);
List<Class<? extends Extension>> extensions = Arrays.asList(
Assurance.EXTENSION,...);
MobileCore.registerExtensions(extensions, o -> {
Log.d(LOG_TAG, "AEP Mobile SDK is initialized");
});
}
}

Kotlin

Copied to your clipboard
class MyApp : Application() {
override fun onCreate() {
super.onCreate()
MobileCore.setApplication(this)
MobileCore.setLogLevel(LoggingMode.VERBOSE)
MobileCore.configureWithAppID("YOUR_APP_ENVIRONMENT_ID")
val extensions = listOf(Assurance.EXTENSION, ...)
MobileCore.registerExtensions(extensions) {
Log.d(LOG_TAG, "AEP Mobile SDK is initialized")
}
}
}

Connect to an Assurance session

  1. Import the Assurance library along with the other Mobile SDK libraries:
Copied to your clipboard
import com.adobe.marketing.mobile.Assurance;
import com.adobe.marketing.mobile.MobileCore;

Deep linking is the best way to connnect to an Assurance session when using the Android SDK. Assurance SDK on Android is already setup to handle incoming intents to your app. You can add an intent filter for incoming links in your app to complete the deep link configuration. The combination of android:host and android:scheme (in the form of <host>://<scheme>) for this intent filter will serve as the Base URL while creating a session in the Adobe Experience Platform Assurance UI

Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.