Consent for Edge Network
The Adobe Experience Platform Consent mobile extension enables consent preferences collection from your mobile app when using the Adobe Experience Platform Mobile SDK and the Edge Network extension.

Configure the Adobe Experience Platform Consent extension in Experience Platform Launch

  1. 1.
    In Experience Platform Launch, in your mobile property, click the Extensions tab.
  2. 2.
    On the Catalog tab, locate or search for the Consent extension, and click Install.
  3. 3.
    Set your desired default consent level.
  4. 4.
    Click Save.
  5. 5.
    Follow the publishing process to update SDK configuration.
AEP Consent extension configuration

Add the AEP Consent extension to your app

Android
iOS (AEP 3.x)
iOS (ACP 2.x)

Java

  1. 1.
    Add the Mobile Core and Edge extensions to your project using the app's Gradle file.
    1
    implementation 'com.adobe.marketing.mobile:core:1.+'
    2
    implementation 'com.adobe.marketing.mobile:edge:1.+'
    3
    implementation 'com.adobe.marketing.mobile:edgeidentity:1.+'
    4
    implementation 'com.adobe.marketing.mobile:edgeconsent:1.+'
    Copied!
  2. 2.
    Import the Mobile Core and Edge extensions in your Application class.
    1
    import com.adobe.marketing.mobile.MobileCore;
    2
    import com.adobe.marketing.mobile.Edge;
    3
    import com.adobe.marketing.mobile.edge.identity.Identity;
    4
    import com.adobe.marketing.mobile.edge.consent.Consent;
    Copied!
  1. 1.
    Add the Mobile Core and Edge extensions to your project using Cocoapods. Add following pods in your Podfile:
    1
    use_frameworks!
    2
    target 'YourTargetApp' do
    3
    pod 'AEPCore'
    4
    pod 'AEPEdge'
    5
    pod 'AEPEdgeIdentity'
    6
    pod 'AEPEdgeConsent'
    7
    end
    Copied!
  2. 2.
    Import the Mobile Core and Edge libraries:

Swift

1
// AppDelegate.swift
2
import AEPCore
3
import AEPEdge
4
import AEPEdgeIdentity
5
import AEPEdgeConsent
Copied!

Objective-C

1
// AppDelegate.h
2
@import AEPCore;
3
@import AEPEdge;
4
@import AEPEdgeIdentity;
5
@import AEPEdgeConsent;
Copied!
This extension is built on the AEPCore (3.x) and it is not compatible with ACPCore (2.x). Please follow the guide for migrating to the Swift AEPCore.

Register Edge extensions with Mobile Core

Android
iOS AEP(3.x)

Java

1
public class MobileApp extends Application {
2
3
@Override
4
public void onCreate() {
5
super.onCreate();
6
MobileCore.setApplication(this);
7
MobileCore.configureWithAppID("yourLaunchEnvironmentID");
8
9
try {
10
Edge.registerExtension();
11
Consent.registerExtension(); // register Consent
12
Identity.registerExtension();
13
MobileCore.start(new AdobeCallback() {
14
@Override
15
public void call(final Object o) {
16
// processing after start
17
}});
18
} catch (Exception e) {
19
//Log the exception
20
}
21
}
22
}
Copied!

Swift

1
// AppDelegate.swift
2
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
3
MobileCore.registerExtensions([Identity.self, Edge.self, Consent.self], {
4
MobileCore.configureWith(appId: "yourLaunchEnvironmentID")
5
})
6
...
7
}
Copied!

Objective-C

1
// AppDelegate.m
2
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
3
[AEPMobileCore registerExtensions:@[AEPMobileEdgeIdentity.class, AEPMobileEdge.class, AEPMobileEdgeConsent.class] completion:^{
4
[AEPMobileCore configureWithAppId: @"yourLaunchEnvironmentID"];
5
}];
6
...
7
}
Copied!

Configuration keys

To update the SDK configuration programmatically, use the following information to change the Edge Consent configuration values.
Key
Required
Description
Data Type
consent.default
No
Consents in XDM format. For more details, see Privacy/Personalization/Marketing Preferences (Consents) Schema.
Map
Last modified 1mo ago