Integrate your Mobile Applications
Customer Data Platform Module for the Engagement Mobile SDK makes it possible for you to
integrate your mobile applications with Customer Data Platform. This integration allows you to
capture rich behavioral and demographic data from customers, and app lifecycle and screen
navigation events. Events collected by Customer Data Platform create a unified profile of a
customer to enable hyper-personalized engagement across multiple clouds, including Marketing,
Commerce, and Service.
Prerequisites
To use the Customer Data Platform Module, create a Salesforce data source connector and copy your tenant-specific endpoint. Log in to Customer Data Platform and navigate to Websites and Mobile Apps. Set up your data sources by creating an app connector.
The appSourceId and tenant-specific endpoint from your web data connector is required for the initialization of the Customer Data Platform Module.
Install the SDK
iOS
Use Swift Package Manager to install and
manage the Customer Data Platform Module for the Engagement Mobile SDK.
Android- In Xcode, with your app project open, navigate to File > Add Packages.
- Enter the package URL for the Engagement Mobile SDK
repository.
1https://github.com/salesforce-marketingcloud/sfmc-sdk-ios - Select the SDK version that you want to use. The latest version is recommended.
- Enter the package URL for the Customer Data Platform Module for the Engagement Mobile
SDK
repository:
1https://github.com/salesforce-marketingcloud/mobile-sdk-cdp-ios - Select the SDK version that you want to use. The latest version is recommended.
- Update the module-level build.gradle
file.
1repositories { 2 maven { 3 url "https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/repository" 4 } 5 maven { 6 url "https://salesforce-marketingcloud.github.io/mobile-sdk-cdp-android/repository" 7 } 8} - Add the SDK dependency.
1dependencies { 2 implementation 'com.salesforce.marketingcloud:cdp:2.0.2' 3 implementation 'com.salesforce.marketingcloud:sfmcsdk:1.0.2' 4}
Additional Resources
- If you implemented the older Mobile SDK version, see Customer Data Platform Mobile SDK.