Code samples
This topic lists all mPaaS code samples.
Code samples are updated periodically as features evolve. We recommend that you download the latest version when you integrate a component. For update descriptions and usage instructions, see the corresponding README.md file.
For the differences between SDK versions, see the Release Notes.
V10.2.3
Android
The code samples for all Android components are bundled into a single ZIP package.
Native AAR-based integration: mpaas_android_app.zip.
iOS
The code samples for all iOS components are bundled into a single ZIP package.
Cocoapods-based integration: iOS_for_mPaaS.zip.
HarmonyOS NEXT
Windows users must use the aggregated demo.
macOS users can choose either the aggregated demo or the individual demos.
The aggregated demo and individual demos provide the same features.
Aggregated demo
The code samples for all HarmonyOS NEXT components are bundled into a single ZIP package.
Individual demos
Component | ZIP package | |
Mobile Message Push | ||
Mobile Sync | ||
Mobile Analysis Service (MAS) | ||
App Upgrade | ||
Mobile Config | ||
H5 container | ||
Mini Program | ||
Mobile Gateway Service (MGS) | ||
Unique Device ID | ||
Scan | ||
Mobile Data Storage | ||
Some network components have limited functionality. To access the full feature set, submit a ticket.
V10.1.68 and 10.1.60 (No longer maintained)
Android
Component | AAR |
mPaaS framework | |
Mobile Gateway Service (MGS) | |
Mobile Message Push | |
Mobile Sync | |
Mobile Analysis Service (MAS) | |
App Upgrade | |
Mobile Config | |
Hotfix | |
Targeted Delivery | |
H5 Container & Offline Package | |
Mini Program | |
Native UI Component (AntUI) | |
Social Share | |
Scan | |
Mobile Data Storage | |
Location | |
Audio/Video Calling |
iOS
Component | Extension integration | Cocoapods integration |
mPaaS framework | ||
Mobile Gateway Service (MGS) | ||
Mobile Message Push | ||
Mobile Sync | ||
Mobile Analysis Service (MAS) | ||
App Upgrade | ||
Mobile Config | ||
Mobile Diagnostics | ||
Targeted Delivery | ||
H5 container | ||
Mini Program | ||
Native UI Component (AntUI) | ||
Social Share | ||
Scan | ||
Mobile Data Storage | ||
Location | ||
Audio/Video Calling | ||
Front-end framework
mPaaS has discontinued Kylin in favor of the more advanced and stable Mini Program component. Compared to Kylin, the Mini Program component is easier to use, more stable, and more adaptable across various scenarios. We recommend new users to integrate the Mini Program component. If you have already integrated the Kylin framework, we recommend migrating to the Mini Program component. For more information, see Mini Program.
V10.1.32 (No longer maintained)
Android
The code samples for all Android components are bundled into a single ZIP package.
Android supports two integration methods: mPaaS framework-based and native framework-based. Select the code sample that matches your integration method. For more information, see Introduction to access methods.
mPaaS framework-based: mpaas_android_demo_10.1.32_201906101936.zip
native framework-based: mpaas_platform_aar_demo_android.zip
iOS
iOS supports integration using both CocoaPods and the mPaaS plug-in. For more information, see Introduction to access methods.
The code samples are available at the following links:
The Collection ZIP package contains the code samples for all components in the following table.
Component | CocoaPods | mPaaS plug-in | Extension plug-in |
Collection (including all components) | N/A | N/A | |
N/A | |||
N/A | |||
N/A | |||
N/A | |||
N/A | |||
N/A | |||
N/A | |||
N/A | |||
N/A | |||
N/A | |||
N/A | |||
N/A | |||
N/A | |||