How can we convert an H5 app into a Quick App with Online Conversion - Huawei Developers

This article is originally from HUAWEI Developer Foum
Forum link: https://forums.developer.huawei.com/forumPortal/en/home
What is the 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.
Quick apps are installation-free apps. At least four major Chinese manufacturers are set to deploy quick apps globally within 6 months. Quick apps support all H5 apps, all H5 games, 90% of app categories, and 90% of game categories.
Note : This article shows that how can HTML5 apps be converted into quick app.
Advantages of Quick App
Low development costs: JS/CSS: 20% of the code for an Android app
Native experience: Native GUI, and ability to access device functions
High retention: Easily added to the home screen and found
End-to-end experience
Find: Quick apps can be found from AppGallery, HiBoard, and HiSearch.
Open: Quick apps open instantly and can be used without being installed. They can update automatically and take up minimum storage.
Use: Quick apps run smoothly on user devices, provide friendly GUIs and excellent functionalities.
Leave: Once closed, they can be -easily from the home screen icon, recently used apps, and Push notifications
Quick App Project Structure
Quick App project structure is basic like other frontend technologies. We can develop Quick app with Javascript,html and css .If you want to look details of Structure, you can visit this page: Details
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Manifest.json specifies the project configuration information, like name, package name, version, pages etc.
App.ux specifies public resource scripts.
UX files describe pages and components.
Huawei Quick App Ide
Huawei quick app IDE provides a complete set of capabilities that span from app development, building, debugging and testing to release. It also provides templates for different services, such as news and media, reading, food delivery, e-commerce, and early childhood education.
For details of User Guide, click here
How can we install Quick App?
We have to install Node JS
After İnstalling Node JS, we can download and install quick App IDE that Huawei provides for Windows and Mac.
Huawei Quick App Loader
We need to Quick App loader to start and debug on our mobile phone.
For this reason we need to install Huawei Quick App Loader and install it manually.
Huawei Quick App Pc Assistant
Huawei Quick App PC Assistant supports loading quick apps to multiple terminals and testing cards and hap links. After the PC Assistant is installed on the PC, you can test the functions of the quick app without using the IDE
You can download all Installation Package link
Example : Convert an H5 app into a Quick App
There are two conversion methods in Huawei Quick App.
Online Conversion : You only need to perform related configurations in AppGallery Connect. Then AppGallery Connect will automatically convert your HTML5 app into a quick app and submit it for review
Offline Conversion : You need to perform the conversion using Huawei Quick App IDE. The generated quick app package will be submitted for review.
In this article's topic online conversion and example shows that how can we convert an H5 app into a Quick App.
Online conversion
First of All we have to create quick app project whose template is HTML5 App.
Create or select an app inside AppGallery. Console > Huawei AppGallery followed this way.If there is no project, click Add project. In the displayed dialog box, enter the project name to create a project. Alternatively, click the project card to which you want to add an app.
Add app on the top of the Project Setting page
Note: We must Quick App as platform.
App and Package name is related our project.
App category includes two section
App : non-game apps (Our example is non game apps )
Game : game apps
After created Application we set app information that includes introduction, brief Introduction, app icon etc. and save all definition.
SHA-256 certificate fingerprint must be created and enter related area inside developer tab.
Note:We can follow Tools >Certificate path to generate certificate fingerprint in Quick App ide
Next step we have to specify link that is converted into a Quick App. For this reason we follow myApps > Project > Distribute > Version Information >Draft path.
We create RPK file in Software Version Area then click Generate RPK based on HTML5 page URL button. RPK file must be created to use in Huawei Quick App Pc Assistant.
-After click this button open under page and fill related area.
Finally Download RPK file from download link.
e can test using Huawei Quick App. You can visit to learn details this link
As you see after conversion operation , our conversion was occured successfully. Short video show us it.

Related

【DTM】Visual Event Tracking for Web Pages (One)

Event tracking is a technology for collecting and processing user behavior data or events, and is widely used for user behavior analysis and data processing. It helps product managers, operations personnel, and data analysts to precisely collect and analyze user behavior data, create user profiles, as well as analyze and optimize products. However, manual event tracking has high requirements in terms of technical skills, as well as requiring a huge workload and a long development period.
The visual event tracking function of Dynamic Tag Management (DTM) was created to deal with such issues. DTM provides multiple solutions for tracking visual events of web pages: common visual event tracking, tag template-based visual event tracking, and visual event tracking by HUAWEI Analytics.
This article will illustrate how to use common visual event tracking.
Prerequisites​1. You have created an AppGallery Connect account and signed in to it by visiting the following URL address, click here
2. You have created a web app and its DTM configuration.
3. You have created your website and integrated the DTM configuration script into it. To integrate the DTM configuration script, perform the following:
a. Click the Configuration tab and then View in the DTM portal.
b. Copy the code snippet below and paste it to the top of the <head> section of each web page to track, so that the code snippet takes effect in a timely manner.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Common Visual Event Tracking​A visual event can be used as the trigger condition for reporting events to multiple third-party analytics platforms. This is applicable to scenarios where visual events and parameters need to be adjusted flexibly.
1.1 Accessing the Visual Event Tracking Page​ 1. Click the Visual event tab in the DTM portal.
2. Click Start on the page displayed.
1.2 Adding Visual Events​ 1. On the Add visual event page displayed, click Add on the right.
2. Select Button or link under Select element for visual event addition. (This option is selected by default.)
3. Select the Detail button under HUAWEI Mate Series on the left page.
Click OK in the displayed dialog box asking you whether to select elements of the same type.
4. Configure visual event information.
a. Enter a visual event name.
b. Click the hand icon, select HUAWEI Mate Xs, and enter a parameter name to add a visual event parameter.
c. Set Triggered on to Specified pages, and add the URL rule URL Equals https://XXXXXX.XXX.
5. Click OK to save the visual event.
6. Click the
icon on the right of a visual event to expand it.
7. Click the
icon in the upper left corner to exit the visual event tracking page.
1.3 Adding a Tag​ 1. Click the Tag tab.
2. Select a tag extension template, and set Trigger condition to MateSeriesView.
3. Click OK.
4. Click Save.
1.4 Creating and Releasing a Version​ 1. Click Create on the Version tab page.
2. On the Create version page, enter a version name and description.
3. Select Create and release version.
4. Click OK.
1.5 Triggering a Visual Event​ 1. Refresh the tested website and download the latest DTM configuration.
Note: By default, the DTM JavaScript SDK downloads the latest DTM configuration to the cache every 15 minutes. To download the latest DTM configuration immediately, disable the browser cache and refresh the tested website again.
2. Click any Detail button under HUAWEI Mate Series.
3. View reported data on the specified third-party analytics platform.
To learn more about DTM, click here.
For more details, you can go to:
Reddit to join our developer discussion
GitHub to download demos and sample codes
Stack Overflow to solve any integration problems
Original Source

【Toolkit】A Free Cloud Debugging and Cloud Testing Services for Huawei Developers

The Cloud Debugging and Cloud Testing services provided by HMS Toolkit allow developers to debug and test apps on a wide selection of remote real devices before releasing apps on HUAWEI AppGallery. Such devices are located in special testing centers throughout the world, including in China, Western Europe, the Asia-Pacific region, and Russia. Let's take a look at Cloud Debugging and Cloud Testing in more detail.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
1. Cloud Debugging: enables you to test your app's integration of HMS Core's open capabilities on the latest Huawei devices, and view your app running in real time in the integrated development environment (IDE). Its features include:
Step-by-step debugging: allows you to quickly locate bugs and other issues as your app is run on remote real devices.
Remote adb debugging: allows you to run the adb command to perform in-depth debugging on remote real devices.
Logcat support: allows you to view debug logs in the IDE Logcat window to identify problems during debugging.
Screen zoom and resolution switching: allows you to zoom in and out of app screens freely and switch resolution between smooth, SD, and HD according to your needs.
Quick file upload: allows you to upload files to remote devices by simple click and drag.
Horizontal and vertical screen switching: allows you to switch the screen on remote devices between horizontal and vertical orientation at the touch of a button.
2. Cloud Testing: provides you with the following automated app testing and report generation services.
Four app test categories: These are divided into compatibility tests, stability tests, performance tests, and power consumption tests, and allow you to comprehensively test your app on Huawei devices during app installation, release, uninstallation, and normal use.
Standardized reports: These reports display the details of each test item and allow you to view screenshots of all test operations to help you quickly detect problems.
3. HMS Toolkit
HMS Toolkit is an IDE plugin, which helps developers integrate HMS Core services and capabilities into their apps at a lower cost and with higher efficiency in Android Studio. HMS Toolkit comes equipped with the following features: Configuration Wizard, Coding Assistant, Convertor, Cloud Debugging, Cloud Testing, and Quality Analysis.
Easy installation:
1. Open Android Studio, go to File > Settings > Plugins > Marketplace, enter HMS in the search box, and click Install.
2. Sign in to the HUAWEI Developers official website to download and install the plugin.
For more information, please read the following documentation.
For more details, you can go to:
Reddit to join our developer discussion
GitHub to download demos and sample codes
Stack Overflow to solve any integration problems
Original Source
I have a question, the phones used for debugging are rooted?

How to Use Visual Event Tracking of DTM Web to Report Events to Google Analytics

The click-through rate of a web page is a critical indicator for operations personnel to understand user behavior and analyze which product content users are interested in. However, tracking events of web pages requires a lot of technical skills – skills which most operations personnel or beginners may not have. In addition, modifying tracking events can also be time consuming and difficult process. There is therefore a need to visualize and simplify event tracking, and prevent the need to frequently release new website versions when events to report are added, reduced, or modified, which has a negative impact on user experience.
This article illustrates how to use the tag template-based visual event tracking feature of DTM Web to report events in your website to Google Analytics. The following uses the example of reporting events about user's viewing of HUAWEI Mate series product details to Google Analytics, to obtain information such as the click-through rate.
Prerequisites
1. You have created an AppGallery Connect account and signed in to it by visiting the following URL address:
https://developer.huawei.com/consumer/en/service/josp/agc/index.html
2. You have created a web app and its DTM configuration.
3. You have created your website and integrated the DTM configuration script into it. To integrate the DTM configuration script, perform the following:
a. Click the Configuration tab and then View in the DTM portal.
b. Copy the code snippet below and paste it to the top of the <head> section of each web page to track, so that the code snippet takes effect in a timely manner.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Accessing the Visual Event Tracking Page
1. Click the Visual event tab in the DTM portal.
2. Click Visual event tracking by tag template in the upper right corner.
3. Click Create in the Select tag template area, set relevant parameters as follows, and click Save.
a. Enter a tag name.
b. Set Extension to Google Analytics: Universal Analytics.
c. Enter the tracking ID. (The ID is obtained from Google Analytics, and is in UA-xxxxxxxxx-x format.)
d. Use default values for other parameters.
4. Select the created tag template, and click Start in the Add area on the right.
Adding a Visual Event
1. On the Add visual event page displayed, click Add on the right.
2. Select Button or link under Select element for visual event addition. (This option is selected by default.)
3. Select the Detail button under HUAWEI Mate Series on the left page.
Click OK in the displayed dialog box asking you whether to select elements of the same type.
4. Configure visual event information.
a. Enter a visual event name.
b. Set Tracking type to Event.
c. Set Event type to {{Event}} (reference to the preset variable Event).
d. Set Event operation to Detail. (Click the hand icon next to Event type and select Detail under HUAWEI Mate Series as a same-type element parameter.)
e. Set Event label to HUAWEI Mate Xs. (Click the hand icon next to Event label and select a product name under HUAWEI Mate Series as a same-type element parameter.)
f. Use default values for other parameters.
5. Click OK to save the visual event.
6. Click the on the icon right of a visual event to expand it.
7. Click the icon in the upper left corner to exit the visual event tracking page.
Creating and Releasing a Version
1. Click Create on the Version tab page.
2. On the Create version page, enter a version name and description.
3. Select Create and release version.
4. Click OK.
Triggering a Visual Event
1. Refresh the tested website and download the latest DTM configuration.
Note: By default, the DTM JavaScript SDK downloads the latest DTM configuration to the cache every 15 minutes. To download the latest DTM configuration immediately, disable the browser cache and refresh the tested website again.
2. Click any Detail button under HUAWEI Mate Series.
Viewing Reported Data on Google Analytics
Go to Realtime > Events and view the latest reported data.
* Data is for reference only.
To learn more about DTM, click here.
For more details, you can go to:
l Our Development Documentation page, to find the documents you need
l Reddit to join our developer discussion
l GitHub to download demos and sample codes
l Stack Overflow to solve any integration problems
Check out in forum

Find the Explanation of Quick Game Part 1

Introduction
In this article, we will learn the following:
What are Quick game?
Feature and advantage of Quick game.
Development procedure.
Installing development tools.
What are Quick Game?
In simple Quick Game are new form of installation free applications. Definitely you will have question what is installation free application right? Basically Quick game you don’t need to install it like we do other android apps. Usually we install apps from Huawei AppGallery or Google play store. But Quick game does not require to install. Directly start using it. Quick Game apps developed based on industry standards formulated by Quick App Alliance, which consists of mainstream mobile phone manufacturers in China. A quick game can be distributed to all mobile phones that supports industry standards without adaptation. To make you clear, check the below example.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Feature and advantage of Quick game
Lower cost: JavaScript and CSS are used for development, and quick games have only 1/5 code of their Android native apps.
Premium experience: The native rendering technology enables quick games to provide functions and experience of native Android apps, but requires less memory space and can be updated automatically.
High retention rate: Quick games are installation-free, support tap-to-use, and can be added to the home screen, enhancing the user retention rate.
Development procedure
Let’s understand what the procedure to develop the Quick Game.
Follow the steps:
Understanding: First understand what quick game is and how it works. Now we have learnt what Quick game is in introduction section.
Preparation: There are couple of preparation need to develop the Quick Game. Let us understand what those preparation are. We will learn in details in upcoming parts.
Step 1: First you need to register as developer to develop quick game. Register here if you are already a developer ignore this step.
Step 2: Create Quick game application AppGallery console.
Step 3: Install development tools. Required tools are follows:
Install Huawei Quick IDE.
Install Quick App loader apk in phone.
Install Quick App PC assistant.
Step 4: Generate and configure a fingerprint certificate.
Step 5: Enable HMS core services.
Development: Develop Quick Game using HMS core services. Integrate HMS game service, IAP, Account and Push Kit in the application.
Packaging: Once your Quick game development is done just package it to RPK. (Don’t be tensed what is RPK it is just an extension for Quick Apps like APK for android).
Release: Once all above steps are done, now last part of the Quick game is release. Release it in the AppGallery.
Prepare qualification file.
Clearly understand Huawei review guideline.
Apply for release Quick game.
Installing development tools
Required tools to develop the Quick Game as follows.
Huawei Quick App IDE
Quick App PC Assistant
Quick App loader
Download all the tools from below links and install it in your desktop or laptop.
ToolsWindowsMacHuawei Quick App IDEDownload exe fileDownload dmg fileQuick App PC assistantDownload Quick App PC Assistant exe fileDownload Quick App PC Assistant dmg fileHuawei Quick App LoaderDownload Quick App loader apkNA
Refer here for more details about installation
Understand more about Quick App IDE
Now let us create a hello world application in the Quick App IDE.
After installing the Quick App IDE, just open it. It looks like below image.
1. Open recent: You can open recently created project.
2. New Project: You can create new project here.
3. Quick App: From new project, select Quick App to create Quick app application.
4. Import project: You can import already existing project. There are two types of project you can import. HTML5 App and HTML5 Game.
5. Open Project: You can open project from the specific path.
Now create new project.
Result
Get all the logs from Quick App PC assistant.
Tips and Tricks
Understand About Quick Game.
Explore some Quick Game from phone.
Install all the required tools.
Make sure you have configured the adb in the desktop or laptop.
Command to install Quick App loader APK
adb install quickapploader.apkCopy code
Conclusion
In this article, we have learnt the What Quick Game is, feature and advantages of Quick app games, steps involved development procedure, installing required tools and one hello world application. By this conclude all the Quick App set up is done. In next part of the article I’ll come up with different concept of Quick Game.
Reference
Quick Game official document
Download tools from here
thanks for sharing!!

Integrating AppGallery Connect APM on iOS

App Performance Management (APM) of AppGallery Connect provides minute-level app performance monitoring capabilities. You can view and analyze app performance data collected by APM to comprehensively understand the online performance of apps in real-time, helping you to quickly and accurately rectify any app performance problems and continuously improve user experience.
If you happen to need this service, this article is exactly what you are looking for.
Perform the following steps for service integration:
Enable HUAWEI Analytics.
Integrate the SDK into your iOS project.
Design the UI.
Report network events.
Enable/Disable performance data collection.
View and analyze app performance data.
Disable APM performance monitoring.
Enabling the APM Service​The APM service uses the capabilities of HUAWEI Analytics when reporting performance management events. Therefore, you must enable HUAWEI Analytics before integrating the APM SDK. For details, click here to view how to enable the service.
Integrating the SDK​If you are using Xcode, you need to integrate the APM SDK into your Xcode project with CocoaPods.
Add the AppGallery Connect configuration file of the app to your Xcode project.
Sign in to AppGallery Connect and click My projects.
Click your project card and select an app for SDK integration from the app drop-down list on the top.
Go to Project settings > General information and download agconnect-services.plist under App information.
Copy the agconnect-services.plist file to your app’s module directory.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Create a Podfile. Open the CLI and navigate to the location of the Xcode project. Then create a Podfile. Skip this step if a Podfile already exists.
Edit the Podfile.
Integrate the Analytics SDK, APM SDK, and Remote Configuration SDK. Edit the Podfile to add the pod dependencies of the Analytics SDK, AppGallery Connect SDK, APM SDK, and Remote Configuration SDK. https://gist.github.com/devwithzachary/22082c3bcd6657de20a46dfe4a1b0216#file-podfile
Install the pod and open the .xcworkspace file to view the project. https://gist.github.com/devwithzachary/7f6fa7c18d30af947048f94499a16972#file-pod-bash
Designing the UI​You can create a page in your Xcode project and design the UI based on the following figure, with three buttons required: one for initiating a network request, one for disabling APM performance monitoring, and one for enabling APM performance monitoring.
Reporting Network Events​You can manually add a time-consuming cyclic log recording operation to trigger a network request, and check whether the launch duration and network performance indicators are normal on the management page of APM. The app launch and screen events are automatically reported when the app is launched. The detailed procedure is as follows:
Initialize the AppGallery Connect SDK, import the header file to the AppDelegate.m file of the project, and add the initialization code. Add a time-consuming cyclic log recording operation and change the number of cycles to observe the change of the launch duration.
2. Create a Send Network Request test button in ViewController in your app. You can tap the button to call sendNetworkRequest to trigger a network request event.
Enabling/Disabling Performance Data Collection​
Create an APM Collection Off test button in ViewController in your app. You can tap the button to call the enableCollection method to disable APM performance monitoring.
2. Create an APM Collection On test button in ViewController in your app. You can tap the button to call the enableCollection method to enable APM performance monitoring.
Viewing and Analyzing App Performance Data​
Sign in to AppGallery Connect and click My projects.
Click your project card and select an app from the app drop-down list on the top.
Go to Quality > APM. Click Overview. The indicator overview includes indicators such as the app launch duration (by version), freeze frame rate ratio (top 5 view controllers), and ANR-affected user rate.
Go to App analysis > App launch duration.
5. Click View details. The app launch duration details page is displayed.
6. (Optional) Select Modify threshold, set the threshold, and click Ok.
7. Go to App analysis > Native page rendering. On the page displayed, you can view the page freezing information (corresponding to ViewController) and then optimize the performance as required.
Disabling APM Performance Monitoring​Method 1: You can disable APM performance monitoring for a released app on the cloud. On the App performance management page, click the Configuration tab, find Overall switch, then disable the switch.
Method 2: You can disable the performance data reporting function for some versions. On the App performance management page, click the Configuration tab and find the app version, then click Add to add the disabled version number to the list.
Method 3: If your app allows users to enable or disable performance monitoring, use the method provided by the APM SDK. Call getInstance for initialization and call enableCollection to enable or disable performance monitoring. The priority of the disabling configuration in apps is higher than that through Remote Configuration in AppGallery Connect. If users disable performance monitoring in apps, APM does not collect performance data even if the performance monitoring function is enabled through Remote Configuration in AppGallery Connect.
Summary​You can add the APM SDK to your app for automatically collecting app performance data without writing any code.
And you can view and analyze app performance data collected by APM in AppGallery Connect to comprehensively understand the online performance of apps in real-time, helping you quickly and accurately rectify any app performance problems and continuously improve user experience.
Reference: HUAWEI AppGallery Connect Crash documentation

Categories

Resources