All Products
Search
Document Center

Code sample of micro application

Last Updated: Mar 10, 2021

This sample code demonstrates the hierarchical relationships between mPaaS micro applications. For details about the iOS framework, see Introduction to the mPaaS framework.

Download code

To download sample code, see Obtain sample code. The project for demonstrating hierarchical relationships between micro applications is mpaas_demo_ios/FrameworkDemo.

Micro-application hierarchy demonstration

  • Click Push app to start MicroApp 1.

  • Click Push app 2 to start MicroApp 2.

  • Click Push app 3 to start MicroApp 3.

  • The current top-layer app is app 3, but you can force app 2 and its windows to exit by running Exit app 2.

  • The current top-layer app is app 3, but you can exit it and return to app 2 by running Exit self.

  • The current top-layer app is app 3, but you can force app 1, app 2, and app 3 to exit and return to root applications by running Exit to launcher.

  • Meanwhile, you can start a service in the micro application for Launcher.