All Products
Search
Document Center

Initialize mPaaS configuration

Last Updated: Aug 24, 2021

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.

    1. public class MyApplication extends Application {
    2. @Override
    3. protected void attachBaseContext(Context base) {
    4. super.attachBaseContext(base);
    5. // Initialize callback settings for mPaaS.
    6. QuinoxlessFramework.setup(this, new IInitCallback() {
    7. @Override
    8. public void onPostInit() {
    9. // This callback indicates that mPaaS has been initialized, and related calls of mPaaS can be made in this callback.
    10. }
    11. });
    12. }
    13. @Override
    14. public void onCreate() {
    15. super.onCreate();
    16. // Initialize mPaaS.
    17. QuinoxlessFramework.init();
    18. }
    19. }

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:

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