All Products
Search
Document Center

Mobile Platform as a Service:Get code samples

Last Updated:Jan 22, 2026

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 framework code sample

Mobile Gateway

Mobile gateway code sample

Message Push

Mobile Push code sample

Mobile Sync

Mobile sync code sample

Mobile Analysis

Mobile analysis code sample

Upgrade

Upgrade check code sample

Switch Configuration

Switch configuration code sample

Hotpatching

Hotpatching code sample

Smart Delivery

Smart delivery code sample

H5 Container and Offline Package

H5 container and offline package code sample

Mini Program

Mini Program code sample

Native UI Components (AntUI)

General UI code sample

Social Sharing

Social sharing code sample

Scan

Scan code sample

Unified Storage

Unified storage code sample

Location

Location code sample

Audio/Video Call

Audio/video call code sample

iOS

Component

Extension connection

Cocoapods connection

Mobile Framework

Mobile framework code sample for Cocoapods and Extension

Mobile Gateway

Mobile gateway code sample for Cocoapods and Extension

Message Push

Message Push code sample for Cocoapods and Extension

Mobile Sync

Mobile sync code sample for Cocoapods and Extension

Mobile Analysis

Mobile analysis code sample for Cocoapods and Extension

Upgrade

Upgrade code sample for Cocoapods and Extension

Switch Configuration

Switch configuration code sample for Cocoapods and Extension

Log Diagnosis

Log diagnosis code sample for Cocoapods and Extension

Smart Delivery

Smart delivery code sample for Cocoapods and Extension

H5 Container

H5 container code sample for Cocoapods and Extension

Mini Program

Mini Program code sample for Cocoapods and Extension

Native UI Components (AntUI)

Native UI Components (AntUI) code sample for Cocoapods and Extension

Social Sharing

Social sharing code sample for Cocoapods and Extension

Scan

Scan code sample for Cocoapods and Extension

Unified Storage

Unified storage code sample for Cocoapods and Extension

Location

Location code sample for Cocoapods and Extension

Audio/Video Call

Audio/video call code sample for Cocoapods and Extension

Frontend framework

Note

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.

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:

Note

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)

ios-portal-pod-demo-10.1.32-201904020020.zip

None

None

Message Push

ios-push-pod-demo-10.1.32-201904021854.zip

ios-push-plugin-demo-10.1.32-201904031034.zip

None

Mobile Sync

ios-sync-pod-demo-10.1.32-201904011523.zip

ios-sync-plugin-demo-10.1.32-201904012111.zip

None

Mobile Analysis

ios-mas-pod-demo-10.1.32-201904021854.zip

ios-mas-plugin-demo-10.1.32-201904031033.zip

None

Upgrade

ios-upgrade-pod-demo-10.1.32-201904011823.zip

ios-upgrade-plugin-demo-10.1.32-201904012120.zip

None

Switch Configuration

ios-config-pod-demo-10.1.32-201904011823.zip

ios-config-plugin-demo-10.1.32-201904012120.zip

None

H5 Container

ios-h5-pod-demo-10.1.32-201904011823.zip

ios-h5-plugin-demo-10.1.32-201904020037.zip

None

Mini Program

ios-tinyapp-pod-demo-10.1.32-201904011823.zip

ios-tinyapp-plugin-demo-10.1.32-201904021353.zip

None

Mobile Gateway

ios-rpc-pod-demo-10.1.32-201904011523.zip

ios-rpc-plugin-demo-10.1.32-201904012111.zip

None

Social Sharing

ios-share-pod-demo-10.1.32-201904021142.zip

ios-share-plugin-demo-10.1.32-201904021142.zip

Social sharing code sample for Extension

Device ID

ios-utdid-pod-demo-10.1.32-201904011523.zip

ios-utdid-plugin-demo-10.1.32-201904012111.zip

None

Scan

ios-scancode-pod-demo-10.1.32-201904021142.zip

ios-scancode-plugin-demo-10.1.32-201904021142.zip

Scan code sample for Extension

Unified Storage

ios-datacenter-pod-demo-10.1.32-201904021845.zip

ios-datacenter-plugin-demo-10.1.32-201904031043.zip

None

Location

ios-lbs-pod-demo-10.1.32-201904021142.zip

ios-lbs-plugin-demo-10.1.32-201904021142.zip

Location code sample for Extension

Mobile Framework

ios-framework-pod-demo-10.1.32-201904011823.zip

ios-framework-plugin-demo-10.1.32-201904012120.zip

None

Native UI Components (AntUI)

ios-antui-pod-demo-10.1.32-201904011823.zip

ios-antui-plugin-demo-10.1.32-201904012120.zip

None

Diagnosis

ios-diagnose-pod-demo-10.1.32-201904011523.zip

ios-diagnose-plugin-demo-10.1.32-201904012111.zip

None

Smart Delivery

Smart delivery code sample for Cocoapods

ios-cdp-plugin-demo-10.1.32-201908081626.zip

Smart delivery code sample for Extension