当前位置:网站首页>H5 application conversion fast application

H5 application conversion fast application

2022-06-25 20:00:00 Huawei Developer Forum

1.H5 Application and quick application introduction

H5 application

  • The fifth generation Html Standard development web application , The browser parses HTML, You can display the content of the web page ;

  • Cross-platform sex ;

  • Run on Browser .

Apply it quickly

  • An installation free application that provides a native experience ;

  • Industry standard , Now there are more than 12 Smart phone manufacturers support ;

  • Need to run in the fast application engine .

H5 Fast application conversion

  • H5 Application to fast application , abbreviation H5 Apply it quickly . It uses a fast application web Component or webview Interface , Then quickly package it into a fast application rpk package , The application is still web application , After being put on the market , Users can directly open , All experiences and original H5 Application similarity .

  • The maintenance workload is small , as long as url No change ,H5 Fast applications do not need maintenance on the client side .

  • H5 After the application is converted into fast application, if it is only released in Chinese Mainland , Please choose carefully , It is likely to be rejected by the audit .

2. Conversion guidance

The conversion mode supports online conversion and offline conversion . Online conversion is a developer access AppGallery Connect, Fill in the relevant content , Automatic conversion of websites to generate fast applications rpk Package and then submit for review .

Offline conversion refers to developers using Huawei fast applications IDE convert , After conversion, package and generate quick application rpk Package and then submit for review . Offline conversion supports two modes ,System Webview Mode and Browser Custom Tabs Mode, The implementation mechanism of the two modes is different .

You can watch the Muke video H5 Fast application conversion , Learn more about how to convert to generate rpk, There are very detailed screen recording operations in the video .

2.1 Online conversion

Developer access AppGallery Connect , Fill in the relevant content , Automatic conversion of websites to generate fast applications rpk Submit the package for review . The overall process is as follows :

2.2 Offline conversion

Developers use Huawei fast applications IDE convert , After conversion, package and generate quick application rpk Submit the package for review , The following two methods are supported .

System WebView Mode: Use fast apps web Component loading H5 url.

Browser Custom Tabs Mode: Use fast apps webview.loadCustomTabsUrl() load H5 url.

2.3 Conversion considerations

The application type belongs to the game H5 url, Online conversion is not supported ,H5 Quick games and H5 The engine implementation of fast application is different .

Offline conversion submitted for review rpk Please pass Build-> Run Release structure .

Offline conversion Browser Custom Tabs Mode when , The minimum platform version number needs to be set to 1078.

Offline conversion Browser Custom Tabs Mode Rely on Huawei browsers app, If Huawei browser is not installed , Fault tolerant processing is needed .

2.4 Comparison of online and offline conversion

3.FAQ

FAQ Please refer to the official website

https://developer.huawei.com/consumer/cn/doc/development/quickApp-Guides/quickapp-h5-to-quickapp#h1-1586402828519

More highlights , Please see the official Huawei Developer Forum →https://developer.huawei.com/consumer/cn/forum/home?ha_source=sanfang

原网站

版权声明
本文为[Huawei Developer Forum]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202190509428861.html