This topic describes the recommended connection types for different development stages and scenarios.
Three connection types
There are three main ways to connect to Mobile PaaS (mPaaS), depending on the development stage and scenario of your iOS project:
For new projects: Connect using the mPaaS framework.
For existing projects that directly link all software development kits (SDKs): Connect using the mPaaS plugin.
For existing projects that use CocoaPods to manage SDKs: Connect using CocoaPods.
Connect using the mPaaS framework
The mPaaS iOS framework is a development framework derived from the Alipay client. The framework directly manages the application lifecycle, including startup hosting and application lifecycle management. It is designed to isolate business logic into independent modules. This promotes high cohesion and low coupling. For more information, see Introduction to the mPaaS framework.
To quickly build a new application using the mPaaS framework, see Create an application using the mPaaS framework.
Connect to an existing project using the mPaaS plugin
If you have an existing project that links all SDKs directly, you can connect using the mPaaS plugin. For more information, see Connect to an existing project using the mPaaS plugin.
Connect to an existing project using CocoaPods
If your existing project uses CocoaPods to manage SDK dependencies, you can connect using CocoaPods. For more information, see Connect to an existing project using CocoaPods.
mPaaS for iOS is developed in Objective-C. If your project uses Swift, you can import the mPaaS Objective-C code using a bridging header.
If you have questions about connecting, you can join our DingTalk support group by searching for the group ID 145930007362. This group includes the mPaaS public cloud Q&A assistant, which can quickly answer common questions. For more information about using the public cloud Q&A assistant, see Public cloud Q&A assistant.