All Products
Search
Document Center

Mobile Platform as a Service:Initialize mPaaS configuration

Last Updated:Nov 17, 2023

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

  1. Create a new MyApplication class in the project.

  2. 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

Note

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.

Note

Before configuring the booth, make sure you have completed the development of the App page where the booth is located.

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.

Follow-up steps

Configure preset booths or configure dynamic booths based on business needs.