These steps use the native AAR mode to access the MCDP component. After adding the MCDP SDK, you need to initialize the mPaaS.
Initialize mPaaS
Create a new
MyApplication
class in the project.In the
MyApplication
class, add the following codes.public class MyApplication extends Application { @Override public void onCreate() { super.onCreate(); // mPaaS initialization MP.init(this); } }
For more details, see Initialize mPaaS.
Add Manifest configuration
If your baseline version is less than 10.1.68.18, this step can be ignored.
By default, from version 10.1.68.18, the MCDP component will not initialize the booth pulling and activities when the process starts. You must manually add the following configuration to the AndroidManifest
file to enable automatic initialization:
<meta-data android:name="com.mpaas.cdp.autoInit" android:value="true" />
After upgrading from a lower baseline version to version 10.1.68.18, you must manually add configurations to the AndroidManifest
file to ensure the normal operation of the corresponding function.
At this point, you have completed the initial configuration of MCDP. And you can customize the dynamic booth and the visual configuration of marketing activities through the console later.
Before configuring the booth, make sure you have completed the development of the App page where the booth is located.
Integrate related component SDK
In order to provide in-app personalized and targeted advertising capabilities, and help users achieve differentiated precision marketing, MCDP integrates the user grouping capability of the Mobile Analysis Service (MAS) and the push capability of the Message Push Service (MPS). Therefore, before using the MCDP function, we recommend that you access MAS and MPS.
For details about how to add MAS, see Access Mobile Analysis Service.
For details about how to add MPS, see Access Message Push Service.
Follow-up steps
Configure preset booths or configure dynamic booths based on business needs.