The AEP Consent Collection mobile extension enables consent preferences collection from your mobile app when using the Adobe Experience Platform Mobile SDK and the Edge Network extension.
Integrate the Consent extension into your app by including the following in your gradle file's dependencies
:
implementation 'com.adobe.marketing.mobile:edgeconsent:1.+'
implementation 'com.adobe.marketing.mobile:edge:1.+'
implementation 'com.adobe.marketing.mobile:core:1.+'
Open the project
To open and run the project, open the code/settings.gradle
file in Android Studio
Run demo application
Once you opened the project in Android Studio (see above), select the app
runnable and your favorite simulator and run the program.
View the platform events with Assurance
Configure a new Assurance session by setting the Base URL to testapp://main
and launch Assurance in the demo app by running the following command in your terminal:
$ adb shell am start -W -a android.intent.action.VIEW -d "testapp://main?adb_validation_sessionid=ADD_YOUR_SESSION_ID_HERE" com.adobe.marketing.mobile.consenttestapp
Note: replace ADD_YOUR_SESSION_ID_HERE with your Assurance session identifier.
Once the connection is established and the events list starts getting populated, you can filter the Edge Consent extension events by typing Consent
in the Search Events
search box.
This project uses the code formatting tools Spotless with Prettier. Formatting is applied when the project is built from Gradle and is checked when changes are submitted to the CI build system.
Prettier requires Node version 10+
To enable the Git pre-commit hook to apply code formatting on each commit, run the following to update the project's git config core.hooksPath
:
make init
Project | Description |
---|---|
AEP SDK Sample App for Android | Contains Android sample app for the AEP SDK. |
Contributions are welcomed! Read the Contributing Guide for more information.
This project is licensed under the Apache V2 License. See LICENSE for more information.