All Products
Search
Document Center

Quick start

Last Updated: Mar 02, 2022

Notice

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 three integration modes: native AAR mode, mPaaS Inside 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 the mPaaS Inside mode, you need to first complete the mPaaS Inside integration procedure.

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

mPaaS Inside mode

Install the Mobile Content Delivery Platform (MCDP) component through the Component management feature in your project.

For more information, see Manage component dependencies.

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 or mPaaS Inside integration mode, you must initialize the mPaaS.

public class MyApplication extends Application {
    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        // Initialize callback settings for mPaaS.
        QuinoxlessFramework.setup(this, new IInitCallback() {
            @Override
            public void onPostInit() {
                // This callback indicates that mPaaS has been initialized, and mPaaS-related calls can be made in this callback.
            }
        });
    }
    @Override
    public void onCreate() {
        super.onCreate();
        // Initialize mPaaS.
        QuinoxlessFramework.init();
    }
}

Add configuration

Since the version 10.1.68.18, MCDP does not initialize boothes 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.