All Products
Search
Document Center

Mobile Platform as a Service:Get code sample

Last Updated:Sep 06, 2024

This article collects all the sample codes of mPaaS.

The code samples are updated occasionally with feature iterations. It is recommended that you download the latest version of the code samples when integrating the component. Please see README.md file for the release notes of the code samples and how to use them.

See Release notes for the changes between each version of SDK.

V10.1.68 & 10.1.60

iOS

Component

Extension Integration

Cocoapods Integration

Mobile Framework

Mobile Framework Code Sample Cocoapods and Extension

Mobile Gateway Service

Mobile Gateway Service Code Sample Cocoapods and Extension

Mobile Push Service

Mobile Push Service Code Sample Cocoapods and Extension

Mobile Sync Service

Mobile Sync Service Code Sample Cocoapods and Extension

Mobile Analytics Service

Mobile Analytics Service Code Sample Cocoapods and Extension

Upgrade

Upgrade Code Sample Cocoapods and Extension

Switch Configuration

Switch Configuration Code Sample Cocoapods and Extension

Log Diagnosis

Log Diagnosis Code Sample Cocoapods and Extension

Content Delivery Platform

Content Delivery Platform Code Sample Cocoapods and Extension

H5 Container

H5 Container Code Sample Cocoapods and Extension

Tiny Program

Tiny Program Code Sample Cocoapods and Extension

Native UI Component (AntUI)

Native UI Component (AntUI) Code Sample Cocoapods and Extension

Social Sharing

Social Sharing Code Sample Cocoapods and Extension

Code Scanner

Code Scanner Code Sample Cocoapods and Extension

Datacenter

Datacenter Code Sample Cocoapods and Extension

Location Based Service

Location Based Service Code Sample Cocoapods and Extension

Mobile Real-Time Communication

Mobile Real-Time Communication Code Sample Cocoapods and Extension

Android

Component

AAR

Mobile Framework

Mobile Framework Code Sample Cocoapods and Extension

Mobile Gateway Service

Mobile Gateway Service Code Sample Cocoapods and Extension

Mobile Push Service

Mobile Push Service Code Sample Cocoapods and Extension

Mobile Sync Service

Mobile Sync Service Code Sample Cocoapods and Extension

Mobile Analytics Service

Mobile Analytics Service Code Sample Cocoapods and Extension

Upgrade

Upgrade Code Sample Cocoapods and Extension

Switch Configuration

Switch Configuration Code Sample Cocoapods and Extension

Hotpatch

Hotpatch Code Sample Cocoapods and Extension

Content Delivery Platform

Content Delivery Platform Code Sample Cocoapods and Extension

H5 Container and Offline Package

H5 Container and Offline Package Code Sample Cocoapods and Extension

Tiny Program

Tiny Program Code Sample Cocoapods and Extension

Native UI Component (AntUI)

Native UI Component (AntUI) Code Sample Cocoapods and Extension

Social Sharing

Social Sharing Code Sample Cocoapods and Extension

Code Scanner

Code Scanner Code Sample Cocoapods and Extension

Datacenter

Datacenter Code Sample Cocoapods and Extension

Location Based Service

Location Based Service Code Sample Cocoapods and Extension

Mobile Real-Time Communication

Mobile Real-Time Communication Code Sample Cocoapods and Extension

Front-end Framework

Note

mPaaS has already provided updated and more stable Mini Program components as the main direction for future maintenance and development, and has ceased maintenance for Kylin. Compared to the Kylin solution, the Mini Program components offer higher usability and stability, and can adapt to various scenarios. Therefore, new users are advised to integrate with the Mini Program components. For users who have already integrated with the Kylin framework, it is recommended to switch to the Mini Program components as well. For more information, see Mini Program.

V10.1.32

Android

The Android code samples of all components are packaged in one .zip file.

You can integrate Android SDK in two ways: Based on mPaaS Framework or Based on Natice Framework. You can download the corresponding code sample according to your needs. For more information, see Integration method introduction.

iOS

You can integrate iOS SDK in two ways: CocoaPods or mPaaS Plugin. For more information, see Integration method introduction.

The addresses of code samples are as follows:

Note

The code samples for all components in the table below are packaged in the All-in-on zip file, and you can get the code samples for all the components from this table in one go.

Component

CocoaPods

mPaaS Plugin

Extension Plugin

All-in-one (including all components)

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

N/A

N/A

Mobile Push Service

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

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

N/A

Mobile Sync Service

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

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

N/A

Mobile Analytics Service

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

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

N/A

Upgrade

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

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

N/A

Switch configuration

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

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

N/A

H5 Container

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

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

N/A

Tiny Program

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

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

N/A

Mobile Gateway Service

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

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

N/A

Social Sharing

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

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

Social Sharing Code Example Extension

Device ID

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

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

N/A

Code Scanner

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

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

Code Scanner Code Example Extension

Datacenter

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

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

N/A

Location Based Service

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

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

Local Based Service Extension

Mobile Framework

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

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

N/A

Native UI component (AntUI)

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

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

N/A

Diagnosis

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

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

N/A

Content Delivery Platform

N/A

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

Content Delivery Platform Extension