All Products
Document Center

Add the SDK

Last Updated: Aug 24, 2021
Important: Since June 28, 2020, mPaaS has stopped support for the baseline 10.1.32. Please use 10.1.68 or 10.1.60 instead. For how to upgrade the baseline from version 10.1.32 to 10.1.68 or 10.1.60, see mPaaS 10.1.68 upgrade guide or mPaaS 10.1.60 upgrade guide.

To integrate the MCDP function into an iOS client, you need to add the MCDP SDK to the iOS project, and complete the project configurations.


You have integrated your project to mPaaS. For more information, refer to Access based on native framework and using Cocoapods.


Use CocoaPods plugin to add the MCDP SDK. Complete the following steps:

  1. In the Podfile file, use mPaaS_pod "mPaaS_CDP" to add dependency.
  2. Execute pod install to complete integrating the SDK.


Configure the project

  1. Add the H5Service and NebulaAppService services to MobileRuntime.plist.
  2. Start the download channel netctrl.
    Note: We recommend that you add the code to -(void)application:(UIApplication *)application beforeDidFinishLaunchingWithOptions:(NSDictionary *)launchOptions before calling the MCDP system function.
    1. // Start netctrl.
    2. [[MASSAccess shareInstance] dispatchTokenSvrInfo:nil
    3. uploadInfo:nil
    4. downloadInfo:nil
    5. downloadInfoCrypto:nil
    6. configStorage:nil];
  3. Configure the HTML5 container.
    Content delivery to HTML5 pages requires the support of HTML5 container, and the container needs to be initialized. The container must be initialized in - (void)application:(UIApplication *)application beforeDidFinishLaunchingWithOptions:(NSDictionary *)launchOptions of DTFrameworkInterface.

    1. // Configure the container
    2. [MPNebulaAdapterInterface initNebula];
  4. Register the container plug-in of the MCDP system. For detailed procedure, see the steps for registering a plug-in in iOS custom plug-ins, and register the container plug-in used by the MCDP system based on the following information: