All Products
Search
Document Center

Mobile Platform as a Service:Quick start

Last Updated:Nov 17, 2023

Important

mPaaS discontinued maintenance of the 10.1.32 baseline, effective from June 28, 2020. Use 10.1.68 or 10.1.60 series baseline. For how to upgrade the baseline version, see mPaaS 10.1.68 upgrade guide or mPaaS 10.1.60 upgrade guide.

MCDP supports two integration modes: native AAR mode and componentized (Portal & Bundle) mode.

Prerequisites

  • The version of the baseline you are using is 10.1.60-beta or higher. mPaaS fully supports MCDP from version 10.1.60-beta of the baseline. Before adding the SDK, make sure that the version of the baseline you are using is 10.1.60-beta or higher. The version information of the baseline can be obtained from the Current mPaaS SDK version information in the mPaaS > Baseline upgrade menu.

  • Before you integrate the component to in the native AAR mode, add mPaaS to your project first.

  • If you want to connect the component to the mPaaS based on components, you need to first complete the Componentized integration procedure.

Add SDK

Native AAR mode

You can use the Component management (AAR) feature to install the Mobile Content Delivery Platform (MCDP) component in your project. For more information, see ARR component management.

Componentized (Portal & Bundle) mode

In your Portal and Bundle projects, install the Mobile Content Delivery Platform (MCDP) component through the component management feature.

For more information, see Manage component dependencies.

Initialize mPaaS

In the native AAR integration mode, you must initialize the mPaaS.

public class MyApplication extends Application {
    
    @Override
    public void onCreate() {
        super.onCreate();
        // mPaaS initialization
        MP.init(this);    
    }
}

For more details, see Initialize mPaaS.

Add configuration

Since the version 10.1.68.18, MCDP does not initialize booths and activities by default when the process starts. You need to 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 need to manually add configurations to the AndroidManifest file to ensure the normal operation of the corresponding functions.

Follow-up steps

After the SDK is added, you can preset booths or dynamically configure booths based on business needs.