Code samples
This topic provides all mPaaS code samples.
We periodically update the code samples with new features. Download the latest version when you integrate a component. For update instructions and usage details, see the corresponding README.md file.
For differences between SDK versions, see Release Notes.
V10.2.3
Android
The Android code samples are packaged in a single ZIP file.
native AAR integration: mpaas_android_app.zip
iOS
The iOS code samples are packaged in a single ZIP file.
CocoaPods integration: eu95_for_mPaas.zip
HarmonyOS NEXT
Windows users should use the combined demo.
macOS users can use either the combined demo or the split demo.
The combined and split demos have the same functionality.
Combined demo
The HarmonyOS NEXT code samples are packaged in a single ZIP file.
Split demo
Component | Zip package | |
Message Push | ||
data synchronization | ||
Mobile Analysis | ||
upgrade | ||
configuration management | ||
H5 Container | ||
Mini Program | ||
Mobile Gateway | ||
UTDID | ||
scan | ||
Unified Storage | ||
To access the full features of some network components, you need to submit a ticket.
V10.1.68 and 10.1.60 (Discontinued)
Android
Component | AAR |
mobile framework | |
Mobile Gateway | |
Message Push | |
Mobile Sync | |
Mobile Analysis | |
upgrade | |
configuration management | |
hotfix | |
targeting | |
H5 Container and offline package | |
Mini Program | |
Native UI Components (AntUI) | |
social sharing | |
scan | |
Unified Storage | |
location | |
audio/video calling |
iOS
Component | Extension | CocoaPods |
mobile framework | ||
Mobile Gateway | ||
Message Push | ||
Mobile Sync | ||
Mobile Analysis | ||
upgrade | ||
configuration management | configuration management code sample for CocoaPods and extensions | |
Log Diagnosis | ||
targeting | ||
H5 Container | ||
Mini Program | ||
Native UI Components (AntUI) | Native UI Components (AntUI) code sample for CocoaPods and extensions | |
social sharing | ||
scan | ||
Unified Storage | ||
location | ||
audio/video calling | audio/video calling code sample for CocoaPods and extensions | |
Frontend framework
Support for the Kylin framework is discontinued. We now focus on the Mini Program component, which is more stable and up-to-date. It offers greater ease of use and is adaptable to a wider range of use cases than Kylin. We recommend that new users integrate the Mini Program component and that existing Kylin users migrate to it. For more details, see Mini Program.
V10.1.32 (Discontinued)
Android
The Android code samples are packaged in a single ZIP file.
Android supports two integration methods: based on the mPaaS framework and based on the native framework. Please see the corresponding code examples for your use case. For more information, see Introduction to integration methods.
Based on the mPaaS framework: mpaas_android_demo_10.1.32_201906101936.zip
Based on the native framework: mpaas_platform_aar_demo_android.zip
iOS
iOS supports integration using CocoaPods or the mPaaS plugin. For more information, see Introduction to integration methods.
The code samples are available from the following links:
The code samples for all components in the table are packaged in the Collection ZIP file, allowing you to download all of them at once.
Component | CocoaPods | mPaaS plugin | Extension |
Collection (includes 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 | |||