This content originally appeared on DEV Community and was authored by shaohushuo
Introduction
This article provides a very detailed introduction to the full process of meta-service development and listing, including meta-service introduction, creation, service cards, signatures, development and testing, signature packaging, listing review, etc.
Metaservice Introduction
- Metaservice is a new way of providing services
- Simple development, no installation, easy to obtain and use
- Compared with mini programs, it is native to the system and smooth and fluent
Lightweight application form, with features such as instant opening, pure and refreshing; service companionship, just in time; ready to use, account accompanying; one body with two sides, embedded operation; native intelligence, global search; efficient development, born to be trusted, etc.
Features
Open in seconds: ready to use, no splash screen ads
Service companion: fulfillment reminder, service closed loop
Use and go: exit without pop-up window, service synchronized with account
Native intelligence: Xiaoyi intelligence, precise reach Global search: system search box
Efficient development: UX component set, scenario templates, etc.
Create meta-service
Create project
- Open DevEco
- New -> Create Project
- Select Atmoic Service
The first time, we will be prompted to log in with a Huawei account. Click here to log in. Note that the account logged in here is the developer account, which is the account used for listing. If you are an enterprise, you should log in with the company's developer account.
Click to log in, and you will be redirected to the browser. Log in to the developer account on the web page and authorize it.
The web page shows that the login is successful, and then we can return to Deveco.
If it is the first time to use, the project has not been created yet. At this time, you need to click Register App ID
to create a new project
Fill in the meta service name. It is important to note that the name cannot be duplicated, must be recognizable, and cannot be a generalized category to avoid misleading users. For specific requirements, see the review guide in the reference material, otherwise the listing review will be rejected.
Click Next, select the project to which it belongs. If the project has not been created yet, enter the project name and click Confirm to create it.
Complete APPID registration.
It is urgent to create a meta service. Click Finish, and the sample code will be generated.
Icon generation
Right-click the module or file in the project
New -> Image Asset
Make a 1024 x 1024 px square icon and automatically generate a circle around it
Write a page
@Entry indicates that the custom component is an entry component, which means that the current page is a page
@Component indicates a custom component
@State indicates the state variable in the component. Changes in the state variable will trigger a UI refresh
aboutToAppear is the life cycle, after the component is instantiated and before build()
build() is the UI description method
Note: Meta services have exactly the same technology stack as HarmonyOS native applications, only the available API sets are different, and the functions are relatively simple
Notes on writing meta services
Many API/Kit Cannot be used in meta-services.
Open the API reference, you can check on the left to filter the meta-service API set
Service card
Static card interaction component FormLink
Used for interaction between static cards and provider applications
action: router is used for redirection, and the UIAbility side receives parameters through params
Receive parameter transmission
EntryAbility.ets
Receive parameters through want?.parameters?.params in onCreate and onNewWant
onCreate: UIAbility instance creation
onNewWant: UIAbility instance returns to the foreground from the background, hot start
onWindowStageCreate: After UIAbility is created, before entering the foreground, WindowStage will be created
Development and testing
- Simulator
- Previewer
- Real machine debugging
- Hot reload
DevEco Testing
Stability test
Performance and power consumption test
Regression test
Basic quality test
Device projection
Support the meta-services of tablets and ensure that compatibility testing has been carried out, otherwise it will affect the listing review.
This part is described in detail in "HarmonyOS Flutter Practice: 13-HarmonyOS Application Packaging and Listing Process".
- Create a Key Store in DevEco
- Generate Key and CSR
- Add a new certificate in Huawei AGC, upload CSR, and obtain the Cer certificate file
- Create a Profile file
- Configure the signature file
- Packaging (Build/Huild Apps)
- Return to AGC, complete the application information, and upload the icon
- Upload the software package
- Complete the application introduction, fill in the privacy policy and user agreement
- If it is an APP, you need to prepare the filing and software copyright in advance (it is recommended to use an electronic copyright certificate)
- Submit for review
References
- Meta-Service
- Meta-Service Review Guide
- HarmonyOS Flutter Practice: 13-HarmonyOS Application Packaging and Shelf Process
This content originally appeared on DEV Community and was authored by shaohushuo

shaohushuo | Sciencx (2025-06-25T02:59:21+00:00) HarmonyOS Native Development Notes: 03-The Whole Process of Meta Service Development. Retrieved from https://www.scien.cx/2025/06/25/harmonyos-native-development-notes-03-the-whole-process-of-meta-service-development/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.