Huawei Quick Apps: Introduction & H5 Conversion CLI

Onur Kenis
Huawei Developers
Published in
3 min readAug 24, 2020

Hi Everyone!

Command-line interfaces (CLIs) built in Node.js allow you to automate repetitive tasks while leveraging the vast Node.js ecosystem. And thanks to package managers like npm and yarn, these can be easily distributed and consumed across multiple platforms.

In this post I will introduce Quick Apps and a Command-line interface that i developed and published to generate Quick Apps from H5 in a different way.

What is Quick Apps?

Quick apps are a new type of installation-free app and are supported by more than 12 major Chinese mobile phone manufacturers.

Strengths of Quick Apps

  • Low Cost: A quick app requires only 20% of the code of an Android app and can be developed within as little as 3 days.
  • Native Experience: Quick apps are installation-free and can update automatically. They can offer an excellent native experience.
  • High Retention: Installation-free quick apps can be added to the home screen and directly used with a single touch, which helps to attract and retain more users.
  • Easy Access: After being seamlessly integrated into HUAWEI Ability Gallery, quick apps can be easily accessed through HUAWEI Assistant, Global Search, and more.

How to develop your quick app?

  • Sign in to AppGallery Connect and create a quick app.
  • Apply for services that you are ready to integrate into the quick app.
  • Download and install Huawei Quick App IDE.
  • Develop your quick app according to relevant requirements.
  • Submit the RPK and wait for review.

Converting an H5 App into a Quick App

Quick apps are different from HTML5 apps. A quick app has its own development standards and runs based on the Quick App Center. However, quick apps support HTML5 web page loading through the web component. In this way, HTML5 apps can be converted into quick apps quickly. After a quick app generation and release in HUAWEI AppGallery, users can directly open the app and have the same experience as using the original HTML5 app.

Conversion can be handled in Huawei Quick App IDE or online.

  • To learn more about online conversion, check out this article.
  • To learn more about conversion by IDE, check out this article.

H5 to QuickApp CLI

Prerequisites: npx which comes with npm 5.2+ and higher.

  • To create a single QuickApp:
  • Batch application creation from JSON:
  • JSON format for Batch Creation:
  • Options:

All options can be empty when running the create-quick-app. Missing fields will be asked respectively. Batch creation is only available in-line.

  • RPK Generation:

To get rpk file, do followings and check PROJECT_PATH/dist folder.

--

--