|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:
- In the Podfile file, use
mPaaS_pod "mPaaS_CDP"to add dependency.
pod installto complete integrating the SDK.
- Add the
- Start the download channel
netctrl.Note: We recommend that you add the code to
-(void)application:(UIApplication *)application beforeDidFinishLaunchingWithOptions:(NSDictionary *)launchOptionsbefore calling the MCDP system function.
// Start netctrl.
[[MASSAccess shareInstance] dispatchTokenSvrInfo:nil
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 *)launchOptionsof
// Configure the container
- 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: