This topic lists all mPaaS code samples.
Code samples are updated periodically with new features. When you integrate a component, we recommend that you download the latest code samples. For update and usage instructions, see the corresponding README.md file.
For more information about the differences between software development kit (SDK) versions, see Release notes.
V10.2.3
Android
Android code samples for all components are packaged into a single compressed file.
Native AAR connection type: mpaas_android_app.zip.
iOS
iOS code samples for all components are packaged into a single compressed file.
Cocoapods connection type: .
V10.1.68 & 10.1.60 (EOL)
Android
Component | AAR |
Mobile Framework | |
Mobile Gateway | |
Message Push | |
Mobile Sync | |
Mobile Analysis | |
Upgrade | |
Switch Configuration | |
Hotpatching | |
Smart Delivery | |
H5 Container and Offline Package | |
Mini Program | |
Native UI Components (AntUI) | |
Social Sharing | |
Scan | |
Unified Storage | |
Location | |
Audio/Video Call |
iOS
Component | Extension connection | Cocoapods connection |
Mobile Framework | ||
Mobile Gateway | ||
Message Push | ||
Mobile Sync | ||
Mobile Analysis | ||
Upgrade | ||
Switch Configuration | Switch configuration code sample for Cocoapods and Extension | |
Log Diagnosis | ||
Smart Delivery | ||
H5 Container | ||
Mini Program | ||
Native UI Components (AntUI) | Native UI Components (AntUI) code sample for Cocoapods and Extension | |
Social Sharing | ||
Scan | ||
Unified Storage | ||
Location | ||
Audio/Video Call | ||
Frontend framework
mPaaS now provides the Mini Program component. Maintenance for the Kylin framework is discontinued, and future development will focus on the Mini Program component. The Mini Program component is easier to use, more stable, and applicable to more scenarios than the Kylin framework. We recommend that new users integrate the Mini Program component and that existing Kylin framework users migrate to the Mini Program component. For more information, see Mini Program.
V10.1.32 (EOL)
Android
Android code samples for all components are packaged into a single compressed file.
Android supports two connection types: mPaaS framework-based and native framework-based. You can download the code samples that correspond to your connection type. For more information, see Introduction to connection types.
mPaaS framework-based: mpaas_android_demo_10.1.32_201906101936.zip
Native framework-based: mpaas_platform_aar_demo_android.zip
iOS
iOS supports two connection types: CocoaPods and the mPaaS plug-in. For more information, see Introduction to connection types.
The sample code is available at the following address:
The Collection compressed file contains the code samples for all components in the following table. You can download this file to obtain all the samples at once.
Component | CocoaPods | mPaaS plug-in | Extension plug-in |
Collection (includes all components) | None | None | |
None | |||
None | |||
None | |||
None | |||
None | |||
None | |||
None | |||
None | |||
None | |||
None | |||
None | |||
None | |||
None | |||