Huawei Ability Gallery - App Ability - Huawei Developers

{
"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"
}
​What is Huawei Ability Gallery (HAG)?​Huawei Ability Gallery is a core capability of the HMS Core ecosystem. HAG creates more convenient experience for users and enables more efficient service distribution for developers, achieving a win-win-win situation for users, developers, and Huawei.
What are HAG Abilities?​Abilities link user intent with various service offerings. Developers define abilities in Huawei Ability Gallery, and users can use these abilities on Huawei devices or through other traffic entries.
HAG provides developers three abilities type
App Abilities: App abilities are presented by icon, and developers must provide deep links to the associated apps.
Card Ability: Developers use quick app development technology to develop ability cards (including data processing and display logic), and abilities are displayed as cards. Information can be displayed in card mode.
Content Ability: Huawei Ability Gallery obtains data from developers’ servers through APIs and provides content abilities for Huawei products. Huawei products then present the abilities as defined. Content abilities can be presented by card or voice.
What is App Ability?
App Abilities which are represented by an icon are used to redirect user to application. We can use app Ability with APK and RPK. All app abilities are shown at Instant Access panel inside Huawei Assistant page.
Note : You have to enable Huawei Assistant today to use Assistant Page
We need to open Huawei assistant page to use it. You should follow this way to change state of it : Settings -> Home Screen & Wallpaper ->Home screen settings -> Huawei Assistant today . Huawei Assistant today must be enabled to use related page. After this you can reach related page
First of all you should open first page of Device and then you should try to change screen left to right. If Page opens , Your settings is correct .Unless Page open , You need to check Huawei Assistant Today setting.
Global Search : We can use it to search something .
Instant Access : Users click the icon or banner and redirect to APP/Quick App.
Smart care : there are smart cards recommended by the system to serve the users. Cards and contents abilities are displayed at here.
App abilities can be created as Dynamic or Static ;
Static app abilities are represented by an icon and it redirects user to related app.
Note : If related app is Native application(APK) , App must be installed to use app abilities . If App ability is created for Quick app (RPK) , users don’t need to install app firstly.
Dynamic app ability can be used to send parameter to application via HiVoice. For example , When the users want to open an application using specific parameter like Hotel name, book name, music name, etc. Dynamic App abilities can be used .They just need to define parameters inside redirect parameters .You can define many parameters inside there.
Also We can trigger our app using app keyword with HiVoice . If your app ability supports multi languages , You can define many keywords for different language.
Note : Maximum of 10 keywords can be configured for each language.
Note : HiVoice uses Celia. currently Celia is available in P40 and following languages and regions:
Languages: English (UK), French (France), Spanish (Spain)
Countries / Regions: United Kingdom, France, Spain, Chile, Mexico, Colombia
Detail : You can follow link to get more information for Celia : Link
How can we create an app Ability?​Note : If you want to create ability , you need to have Entertainment Account .You can create app ability inside 1 or 2 days.
While we create an app ability , We must follow specific way.
Firstly, app ability’s icon should be designed. Design operation has many restriction like size , color , icon border type ,etc.
If you need to get more information , you will follow this link (Icon Design Rules).
We need to create deeplink to redirect users. Redirection URL in a deep link,
Under this line you can see correct formats for Both APK and RPK solution:
huawei://
com.huawei://
com.huawei://hag
com.huawei://hag/app/ability
com.huawei://hag/ability?type=app&test=1
Note : RPK and APK have different deeplink integrations.
If you want to create deeplink for APK ,you can define them inside activity or Navigation XML files.I want to give an example for it :
​On the other hand You want to create deeplinks to Quick app , You can use quick app package path.
After add path parameter under Router , You can define deeplink like : hwfastapp://appPackageName
How can we test deeplinks ?​We can test deep-links with adb . If There is no problem on deeplink, Your Application is opened . You can use CMD to work with ADB commands .Also following code helps you for testing deep-link
adb shell am start -a android.intent.action.VIEW -d deepLink
Examples Of Adb Commands :
adb shell am start -a android.intent.action.VIEW -d pettracker://pet-tracker.fi/home
Note : pettracker://pet-tracker.fi/home is our deeplink , It redirects user to related screen.
If you want to send parameter with app ability, you can use following deeplink
adb shell am start -a android.intent.action.VIEW -d pettracker://pet-tracker.fi/track?param=Buddy
After These operations are finished , We can start integration for related app.
While We begin to create app ability , we have to select countries/regions for release the ability. There are three region Europe, Russia and AALA(Asia-Africa-Latin America).
Note : If your ability needs to serve two countries or regions covered by different sites, create it on both sites. For example, if you want to server both Morocco and France, create an ability on Huawei Ability Gallery (AALA) and Huawei Ability Gallery (Europe).
After selecting a site, you will be prompted to sign the Huawei Ability Gallery Service Agreement. Click App ability, set required parameters, and click Create.(Ability Name has to contain app name .For example your App name Pet Tracker , your app Ability name can be Pet Tracker Ability)
Select countries/regions for release. You can also create an ability for each operations region independently.
We must configure an interaction model. Interaction model page includes ability name ,ability category and ability trigger mode. Under this page you determine trigger mode . For example keyword trigger mode. User can search your app in HiSearch on Huawei assistant page .If your user’s intent matches declared keyword your app ability displayed on screen.
We can configure a deep link that redirects a user from an ability icon to an app on Lint settings page. The deep link can be created for APK or RPK .
Finally Click Ability information page. Fill in basic information and ability display information, and click Save. If Ability information supports multi-language presentation, you can click Manage Languages to select and manage languages, and configure the relevant Ability information.
How can we test created App ability ?​Huawei provides us test platform for App abilities.Before releasing an app ability, test its functions and content and make sure that all of them pass the test.
Sign in to Huawei Ability Gallery, go to Test > Release for test, and click Release for test.
We need QR code to test app abilities for this reason click Simulation test to obtain a test QR code. The test QR code is displayed on the right.
After Creating QR code , we can scan it with Our Device.We can do this operation using Huawei Ability test tool. Start Huawei Ability test tool select App Ability, and tap Scan QR Code, and scan the QR code then click search.
After the scanning is successful, set Intent category and Keyword, tap SEARCH, and test the functions and content.
Related Links​HAG Web Page : Link
App Ability Web Page : Link
App Ability Configuration Page : Link
App Ability Design Page : Link

Related

Releasing an App to the HUAWEI AppGallery

Releasing an App
After an app is developed, you need to submit it to Huawei for review in HUAWEI AppGallery Connect.
1. Sign in to AppGallery Connect and select My apps.
2. Click your app to be released from the list. The App information page is displayed.
{
"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"
}
Configuring App Information
Complete or update app information by referring to Updating App Information, and click Save. In the dialog box that is displayed, click OK. Then continue to configure version information.
Setting Countries/Regions to Release Your App
Click Add under Countries/Regions and select countries/regions to release your app.
The following table lists the countries and regions supported.
Setting Whether the Version Is for Open Testing
If you have enabled Open Testing for your app, you can set Version for open testing.
Select No for a version to be officially released.
If you select Yes, perform configurations by referring to Releasing an App of the Open Testing Version.
Uploading the Software Package
Click Manage package.
If no package was uploaded during app creation, the following information is displayed. Click Upload. In the dialog box that is displayed, click + to upload your package.
If a package has been uploaded during app creation, select the package and click Select.
If no package was uploaded during app creation, the following information is displayed. Click Upload. In the dialog box that is displayed, click + to upload your package.
If a package has been uploaded during app creation, select the package and click Select.
Configuring Payment Information
1. Select a payment type based on your app.
For example, if your app is free, select Free.
If your app is a paid one:
a. Select Paid, set Default Currency in This Page, and click Save.
b. Click View and edit. On the App price page, set Default Currency in This Page, Converted price (tax included), and Default country/region, and click Save.
2. Select an in-app purchase category. Multiple options can be selected.
Configuring Content Rating
In the Content Rating area, click Apply Ratings, and select ratings based on your app.
Configuring the Privacy Description
If your app package requires access to privacy permissions, describe the permission usage in the text box.
Configuring the Privacy Policy
If your app needs to collect and process user information, provide the link to your privacy policy statement.
Configuring Copyright Information
Copyright information: Upload the disclaimer and other qualification files. Files must be in JPG, PNG, or BMP format. Each file cannot exceed 4 MB.
The requirements for uploading the app copyright certificate or proxy certificate differ between apps and games.
- Apps: The disclaimer is mandatory for app release to the Chinese mainland.
- Games: Other qualification files need to be uploaded for game release to the Chinese mainland.
Version number and its proofs: For games, configure information in this area.
Completing Other Version Information
Configure other version information, such as app review information and whether to enable family sharing.
Scheduling the App Release
Set the release date for your app. You can release your app either immediately after it is approved or at a specified time (accurate to seconds).
Submitting Your App for Review
Once you have confirmed that there are no errors, click Submit.
After the app is submitted, you can view its status in Status.
The review will be completed in 3 to 5 working days. If your app is rejected, an email will be sent to the email address that you have provided in contact information.
Adjusting the Release Date for Your App
If your app has been approved and the specified release date has not arrived, you can still change the release date. Changing the release date does not require manual review.
In order to publish an application for China we need to get a Software Copyright Certificate https://forums.developer.huawei.com/forumPortal/en/topic/0203480680985250017
So basically we need to register our application.
Registration site https://ccopyright.com.cn/
First, we need to apply for developer authorization https://register.ccopyright.com.cn/real.html#/realApplyPeople
I am stuck on it, so I have not yet reached the registration of the application.
The site itself is in Chinese, so I use Google Translate for its pages. There is http://www.ccopyright.com/en/, but there is nothing you can find to submit any applications, just a little information in English, limited version.
We can apply for developer authorization using our foreign passport.
But in the registration form there are two items for which we need to upload images (photos) of our documents.
The first item requires two images (the second image is some kind of translation of the document, well, usually foreign passport already have both native language and English version on the same page, so I don't really understand what second image should be, so I just duplicated the photo of my foreign passport twice).
The second item also requires image (third one), I added a photo of my country's national passport)
But it didn't work:
The first image was apparently correct (foreign passport), I need to understand what is needed for the second image (some translation, maybe into Chinese) and the third image (second item)
Has anyone tried to register there?

Huawei Ability Gallery - App Ability

{
"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"
}
What is Huawei Ability Gallery (HAG)?
Huawei Ability Gallery is a core capability of the HMS Core ecosystem. HAG creates more convenient experience for users and enables more efficient service distribution for developers, achieving a win-win-win situation for users, developers, and Huawei.
What are HAG Abilities?
Abilities link user intent with various service offerings. Developers define abilities in Huawei Ability Gallery, and users can use these abilities on Huawei devices or through other traffic entries.
HAG provides developers three abilities type
App Abilities: App abilities are presented by icon, and developers must provide deep links to the associated apps.
Card Ability: Developers use quick app development technology to develop ability cards (including data processing and display logic), and abilities are displayed as cards. Information can be displayed in card mode.
Content Ability: Huawei Ability Gallery obtains data from developers’ servers through APIs and provides content abilities for Huawei products. Huawei products then present the abilities as defined. Content abilities can be presented by card or voice.
What is App Ability?
App Abilities which are presented by icon are used to redirect user to application. We can use app Ability with APK and RPK. All app abilities are shown at Instant Access panel on Huawei Assistant page.
Global Search: We can search something at there.
Instant Access: Users click the icon or banner and redirect to APP/Quick App.
Smart care: there are smart cards recommended by the system to serve the users.Cards and contents abilities are displayed at here.
Developers can be created app abilities as static or dynamic ;
Static app ability is an icon and it redirects user to related app.
Note : App abilities aren’t displayed without app installed If related app is Native application(APK).If App ability was created to Quick app (RPK) , users don’t need to install app first.
Dynamic app ability can be used to send parameter to application via HiVoice. For example , When the users want to open an application using specific parameter like Hotel name,book name,music name, etc. Dynamic App abilities can be used .They just need to define parameters inside redirect parameters .You can define many parameters inside there.
Also We can launch app using app keyword is used for triggering an app by voice.If your app ability supports multi languages , You can many keywords for all of them. A maximum of 10 keywords can be configured for each language.
Note: HiVoice uses Celia.currently Celia is available in P40 and following languages and regions:
Languages: English (UK), French (France), Spanish (Spain)
Countries / Regions: United Kingdom, France, Spain, Chile, Mexico, Colombia
Detail: You can follow link to get more information for Celia : Link
How can we create an app Ability?
Note : If you want to create ability , you need to have Entertainment Account .You can create app ability inside 1 or 2 days.
While we create an app ability , We must follow specific way.
Firstly, app ability’s icon design should be done. Icon design has many restriction like size , color , icon border type ,etc.
to get more information you can follow this link (Icon Design Rules).
We need to create deeplink to redirect users.Redirection URL in a deep link, please follow the filling rules.
Under this line you can see correct formats for Both APK and RPK solution:
huawei://
com.huawei://
com.huawei://hag
com.huawei://hag/app/ability
com.huawei://hag/ability?type=app&test=1
Note: RPK and APK have different deeplink integrations.
If you want to create deeplink for APK ,you can define them inside activity or Navigation XML files.I want to give an example for it :
On the other hand You want to create deeplinks to Quick app , You should define them inside manifest file of Quick App.We must add path parameter under router tag .Quick apps use it to redirect.
After add path parameter under Router , You can define deeplink like :
hap://app/quickAppPackagename/hello
How can we test deeplinks?
You can test deep-links with adb .If there is no problem , Your Application automatically is opened . You can use CMD to work ADB commands .Also following code helps you for testing deep-link
adb shell am start -a android.intent.action.VIEW -d deepLink
Examples Of Adb Commands :
adb shell am start -a android.intent.action.VIEW -d pettracker://pet-tracker.fi/home
Note: pettracker://pet-tracker.fi/home is our deeplink , It redirects user to specific fragment.
If you want to send parameter with it , you can use following deeplink
adb shell am start -a android.intent.action.VIEW -d pettracker://pet-tracker.fi/track/Fluffy
After These operations finished , We can start integration to related app.If you want to create HAG ability , you must have Entertainment account.otherwise you never see Huawei Ability Gallery panel on console.
While We begin to create app ability , we have to select countries/regions for release the ability.There are three region Europe,Russia and AALA(Asia-Africa-Latin America).
Note: If your ability needs to serve two countries or regions covered by different sites, create it on both sites. For example, if you want to server both Morocco and France, create an ability on Huawei Ability Gallery (AALA) and Huawei Ability Gallery (Europe).
After selecting a site, you will be prompted to sign the Huawei Ability Gallery Service Agreement. Click App ability, set required parameters, and click Create.(Ability Name has to contain app name .For example your App name Pet Tracker , your app Ability name can be Pet Tracker Ability)
Select countries/regions for release.You can also create an ability for each operations region independently.
We must configure an interaction model.Interaction model page includes ability name ,ability category and ability trigger mode.Under this page you determine trigger mode . For example keyword trigger mode. User can search your app in HiSearch on Huawei assistant page .If your user’s intent matches declared keyword your app ability displayed on screen.
We can configure a deep link that redirects a user from an ability icon to an app on Lint settings page. The deep link can be created for APK or RPK .
Finally Click Ability information page. Fill in basic information and ability display information, and click Save. If Ability information supports multi-language presentation, you can click Manage Languages to select and manage languages, and configure the relevant Ability information.
How can we test created App ability?
Huawei provides us test platform for App abilities.Before releasing an app ability, test its functions and content and make sure that all of them pass the test.
Sign in to Huawei Ability Gallery, go to Test > Release for test, and click Release for test.
We need QR code to test app abilities for this reason click Simulation test to obtain a test QR code. The test QR code is displayed on the right.
After Creating QR code , we can scan it with Our Device.We can do this operation using Huawei Ability test tool. Start Huawei Ability test tool select App Ability, and tap Scan QR Code, and scan the QR code then click search.
After the scanning is successful, set Intent category and Keyword, tap SEARCH, and test the functions and content.
Related Links
HAG Web Page : Link
App Ability Web Page : Link
App Ability Configuration Page : Link
App Ability Design Page : https://developer.huawei.com/consumer/en/doc/development/service/5060600
Thanks to Serkan Mutlu for this article.
Original post: https://medium.com/huawei-developers/huawei-ability-gallery-app-ability-5827c30d1360

Huawei App Messaging Service Part1

Huawei App Messaging Service Part1
Hello everyone, I will explain what is app messaging service, what are the advantages, what are the differences from push kit and how can we use the service in our own applications. App messaging is a service that provides messages and notifications to target active users of the application. Using the console, we can send a message to the application in the format desired, when the users use the application.
{
"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"
}
In which scenarios can we use the App Messaging?
App messaging is used in almost all kinds of applications, from games, banking applications, food service applications to shopping brands.
Online Shopping Mobile Applications
One of the most well-known of these is discount or opportunity campaign information on online shopping websites’ mobile applications. These shopping sites detect the requests of the users according to the behavior analysis of the users or the events such as button clicks that will trigger the app messaging. According to these analyzes, they present messages about their campaigns to the user.
Mobile Games
Another well-known scenario is in-app information, instructional explanations and sales campaigns in mobile games.
The Themes Applications
One of the scenario examples is its use in applications that provide visual services on the phone. In these applications, new product information in the application is made using the app messaging image feature.
Encourage users
Another scenario is that app messaging can be used to encourage users to watch video, to share app-related features, campaigns, game scores on their social media and to keep up with payment transformation.
Also, with the help of app messaging, We can encourage users to engage with our applications.
Use For Advertising
If we have an advertising agreement with other brands, we can deliver the ads of these brands to users with app messaging in the template we want.
*According to the usage of the applications of the users, their preferences can be analyzed and certain messages can be presented to the user
*The preferences made by the users while using the applications can be analyzed and the messages determined using these analyzes can be presented to the user.
*According to our scenarios, messages can be presented in the form of cards, pictures.
*Data about users can be collected.
Differences Between App Messaging and Push Kit
*App messaging message is arranged by the client and triggered by an event. Push kit message is transmitted by server.
*App messaging message is displayed when the user is using our application. However, It is enough to install the application on our phone to receive the push kit message.
*There are many templates in app messaging and we can customize them. The message style is simple. The notification bar only has a predefined simple style template.
*App messaging message contents are determined according to user behavior. But, the app kit message has weak correlation with user behavior.
*App messaging has attractive and enhancing features for active users. However, app kit message is used to deliver simple notifications and reminders to users about the app.
Getting Started
Development Environment and Skill Requirements
*A computer with Android Studio installed for app development
*Skills in Java and Android Studio
*A developer account registered by referring to Registration and Verification
Device Requirements
*A device running Android 4.2 or a later version
Preparations Before Development
Before we start to apps development , we should apply some steps to our own project. the following preparations:
*Create an app in AppGallery Connect.
*Create an Android Studio project.
*Add the app package name.
*Configure the Maven repository address and AppGallery Connect gradle plug-in.
*Synchronize the project.
we can follow the link below for the steps above.
("https://developer.huawei.com/consumer/en/codelab/AGCPreparation/index.html#0"]https://developer.huawei.com/consumer/en/codelab/AGCPreparation/index.html#0[/URL]
the App Messaging SDK Integration
We need to download and add SDK into our application for App messaging.
1. Firstly, we need to sign in to AppGallery Connect and select My projects.
2. Secondly, we need to select the app then we need to enable App Messaging using the app list in our project.
3. After that, we need to click agconnect-services.json to download the configuration file from the project setting page and copy the agconnect-services.json file and paste it to the app root directory.
4. Fourthly, we need to open the app-level build.gradle file and add the following code for HUAWEI Analytics Kit and the App Messaging SDK integration. Then synchronize the configuration.
("https://gist.githubusercontent.com/hakki2391/4b875a293272b35680d64f2ad2251d08/raw/f716762bfb1a946be60d7d30c862a17fc886c7d2/Dependencies")
Enabling App Messaging
*Firstly, we will sign in to AppGallery Connect and select My projects.
*Secondly, we will find our project from the project list and click the app for which we want to enable App Messaging on the project card.
*Finally, we will go to Growing then we will find App Messaging and click Enable now.
How can we create a Message
*Firstly, sign in to AppGallery Connect and select My projects.
*Select the app for which we need to enable App Messaging from the app list in our project.
*Go to Growing then find App Messaging.
*Click New.
*Set the style and content. We can set Type to image, banner, and pop-up like below
*We will use pop-up.
*Now, set other parameters as required. Click Next.
*On this point, set the sending target condition and the package name of the current app.

Maintaining The Quality Of An Application made easy By Using Huawei Open Testing Tool

Introduction
Testing has been around longer than we would think and by extension software testing isn’t a relatively new concept either. Before markets became more complicatedly connected and their customers became more diverse, businesses didn’t bother ensuring their products were of a high standard or fully fulfilled their purposes. Even government didn’t bother to enforce high quality standards in products which means many businesses use to cut corners.
If we look into our history, the most famous examples were the tests implemented by Alan Turing. In 1950 the Turing test originally called the imitation game by Alan Turing, is a test of a machine's ability to exhibit intelligent behaviour equivalent to, or indistinguishable from, that of a human. Turing also created tests used to check the validity of a large routine and ensuring it was correct.
Slow and steadily, government realised the potential immeasurable gains from opening up markets and trading globally, which therefore meant businesses needed to start putting out higher quality products to better compete with their foreign competitors.
Huawei Open Testing tool ensures the quality of the application before releasing to the market, sounds familiar right. The concept of open testing is to publish the app to a group of users for testing the application, gather feedback from them, make those changes according to the feedback received as email in the application and then release the application globally. This process helps to ensure the quality of the application in a timely manner.
Steps for Open Testing
Apply for Open Testing Service
Open testing is still in beta stage, so we need to write an email to [email protected] in order to get the service enable for your project in developer console. The mail format is very simple, the title of the email should be in the following format:
[Open testing]-[Company name]-[Developer account ID]-[App ID]
Developer account ID and App ID can be found in agconnect-service.json file. cp_id indicates the Developer account ID and app id indicates the App ID as shown below:
{
"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"
}
Once Huawei Operations Personnel enable the service for our project, we can then avail the service provided by Huawei.
Creating Open Test User List
Before we jumped the gun, we need to create a list of users who will participate in the open testing. We can create up to 30 test user lists in total and 20 per day.
1) We need to Sign In to AppGallery Connect
2) Select User and permission
3) Navigate to User List and click New button
4) Provide a List Name, which acts as a group. Under List Name we can add multiple users.
5) Select Stored in as all, if we wish to invite testers globally otherwise we can choose country wise if the test users are from China, Russia, Germany or Singapore. By this way we can create different group or List Name for different country the users belong to.
6) User information can be manually added or by importing an excel sheet using File import mode. The template of excel is shown below:
7) Add User by providing their Huawei Id and name.
8) We can delete any invalid user from the list by simply selecting the dropdown functionality of Status as shown below:
9) The complete list will display as follows:
Releasing for Open Testing
After creating the list, we can release the app of the open testing version in AppGallery Connect and select the list of test users to distribute your app.
1) Select the app which we want to use for Open Testing
2) Select My App from the drop down
3) Select Distribute Tab
4) Navigate to Release App and select Draft
5) Navigate to open testing section and select yes in version for opening testing section.
6) Checked or select used for early access free of manual review. This mode allow us to add maximum 100 test users. If the option is not selected, manual review is required and we can invite up to 5000 test users.
7) Select a test period, the maximum validity period is 90 days. After the period is over the test users will not be able to find the app in the App Gallery.
8) Then select the list of users for testing. Remember we can select only 100 test users for open testing or 5000 test users if early access free for manual review is not selected.
9) Feedback email is needed as it will help app owner to get feedback from open test users and Invitation link validity period also need to be provided because a validity period of an email or SMS invitation link sent to a user, which starts from the time when the user receives the link and cannot exceed the number of days of the open test validity period. A link is valid when both this period and the open test period do not end.
Participate as Open Testing Users
Once the above process is done, an email will be send to the user who are participating as Open Testing Users. This email will contain a link to download the application from App Gallery after they sign in using their Huawei ID. The app will be shown as beta in the App Gallery as shown below:
Tips & Tricks
Before we go ahead with Open Testing service, we should complete first the App Information section of Release app. Otherwise the app will not be release for Open Testing in App Gallery. We can also use some of the testing services provided by Huawei before releasing the app on App Gallery to maintain the quality. The testing services are as follows:
1) A/B Testing: When we have multiple UI design plans for the same scenario, we can create a remote configuration experiment in A/B Testing to deliver these variants to users for responsiveness. To know more check out the link below:
https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-cloudtest-introduction
2) Cloud Testing: It helps us to automatically tests the compatibility, stability, performance, and power consumption of Android apps, without manual intervention. In Cloud Testing, we can test our app against the full range of Huawei phones, to determine if there are any potential issues, well in advance. To know more check out the link below:
https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-abtest-introduction
Conclusion
We learn how to maintain the quality of an application by using Open Testing service provided by Huawei.
Feel free to comment, share and like the article. Also you can follow me to get awesome article like this every week.
For more reference
https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-betatest-introduction
I need to release an official version after the test. Do I need to enter the app information again?

Huawei Ability Gallery — Card Ability

{
"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"
}
Hi everyone, I will explain Card Ability in this article. Article also includes general information for Huawei Ability Gallery. You can find and download a sample Card ability project at the end of Article.(If you want to test it, read requirements section before test).
What is Huawei Ability Gallery ?​HUAWEI Ability Gallery is Huawei’s unified platform for ability integration and distribution. It aggregates traffic from a wide range of devices in all scenarios and provides developers with a one-time integration and all-scenario distribution solution.
Note I : If you want to develop an Huawei ability, you need to have an Enterprise account otherwise Smart Service section on AGC cannot be seen. To learn How to register Enterprise account, visit link: Link
Note II : Developers in Team list cannot create ability even if They have enterprise account.
Note III :All Abilities can be seen in Huawei Assistant page. You can open or close page following steps : Settings -> Home Screen & Wallpaper ->Home screen settings -> Huawei Assistant today.
Devices for Ability Distribution​Services integrated with HUAWEI Ability Gallery can be distributed to 1+8+N devices in almost all scenarios and provide users with natural interactive services.
“1” : Smartphone.
“8” : tablet, smart TV, speakers, AR/VR, watch, head unit, earphones, and PC.
“N”: devices used in scenarios such as mobile office, smart home, sports and health, entertainment, and smart travel.
For example, the weather service integrated with HUAWEI Ability Gallery can be distributed to devices such as smartphones, tablets, smart TVs, head units, and watches through AI Voice.
Huawei Ability Integration Modes​Huawei Ability Gallery include 3 types of ability :
App Ability: Instant Access can access HUAWEI Ability Gallery via app abilities, which are presented by icon. Links for redirecting to an APK, RPK, or HTML5 page are provided by Developer.
Content Ability: HUAWEI Ability Gallery obtains data from developers’ servers through APIs and provides content abilities for Huawei products. Huawei products then present the abilities as defined.
Card Ability : Developers use quick app development technology to develop ability cards (including data processing and display logic), and abilities are displayed as cards.
Card Ability​Card ability presented by card has the following features:
The name and content of the ability are presented to users.
A user who taps the card will be redirected to the native app, quick app or HTML5 page.
More content is displayed to attract users, contributing to higher conversion rate.
Each users must subscribe Card ability to display Card ability in Huawei Assistant Page. Cards can be use without any app. Users just need to subscribe it to use.
Note : Each card has an widget id attribute which cannot be edited or deleted. Otherwise, the widget dragging and simulated preview functions will be unavailable.
Interaction Types of Card Ability​HAG includes three intents type. These are user ,event and resident events. Developers must configure at least one of them .
User Intents : A user intent is represented by one or more intents in the interaction model. Card ability can be triggered by Keywords , Voice and Images.
Event Triggers : An ability is triggered when event conditions (such as time and location) that you have set are met. When an event occurs, HUAWEI Ability Gallery pushes the ability card to users to display event-related information. To add an event, select an event category (Custom event or Preset event), set the event type, name, description, specify whether to push an event to a specified user, set the duration when the event card will stay visible on the screen, and finally set the display mode.
Resident Event Card : If you need a permanent intent card, just create it, with no need to push events. The card will be always available in HUAWEI Assistant.
For Detail Information About Interaction models of Card Ability , visit this page Link
Card Ability Design​HUAWEI Ability Gallery contains common template components and basic parameters, which must be used together with the UX specifications.
Developers use Huawei Quick App ide to design Card ability templates.
Note I : Unless You want to use predefined template, you can select empty template and then design it easily. You just need to look at this document to learn How to use ide.
There are many restriction to design card ability so Before start to design, Huawei Card design page must be checked. Link
Note II : Before you start card development, contact [email protected] for assistance and fill in the Service information registration table to ensure that your card complies with Huawei specifications.
Requirements to develop Card Ability​Before Developers start integration of HAG , They need to load some tools to design and test.
Huawei Quick App ide Packages
Huawei Quick App ide which is strong development tool is used to develop card ability. You can download here :
Note : Before load Huawei Quick App ide , You must install Node.js. Link
Huawei Quick App ide for Win64 : Link
Huawei Quick App ide for Mac : Link .
Installation Guide for Mac link
Huawei Quick App Loader
It is used to start and debug quick app and HAG development. Link
Card Ability Development​Card ability can be developed with Huawei Quick App ide. Developers use JavaScript, HTML and CSS to develop card ability. Quick app ide has many different template. If Developers want to use one of them , They can use and integrate their features. For instance they can get data from server and show these on Card ability to users like we did.
Note : Card development takes 12 days.
First step design or select card ability template. In our example I choose a template. To select a card template ,you can follow File > New Project > New Widget Project.
After create a card , developers can modify card ability appearance . In Our example, we change number of element list , images and content of card ability. In addition If users click “More Currencies button” , They will be redirected to related page of app. If you want to learn detail of design , visit following link
We need to create objects and variables to store data which comes from API .In our Card has on
JavaScript:
data: {
currencies:[
//Our models consist of 3 properties.name,currency rate and image.
//Images is stored base64 format in objects.
{"name":"GBP","rate":"0.00","imgUrl":"data:image/png;base64,..."},
{"name":"EUR","rate":"0.00","imgUrl":"data:image/png;base64,..."}
],
//It show that when Data was obtained
UpdatedTime:null,
//Our card title
currencyCardTitle:"Currencies",
//Our Button name
currencyCardButton:"More Currencies",
/*
these items will be displayed on card ability, Our design includes only two items.
If you want to add more items, you need to insert into here
*/
'dividings': ['newsandinformationtype_dividing', 'newsandinformationtype_dividing']
}
We need to send request to obtain data from service , We can use Fetch for this operation. Under line you can see how to use fetch .You can download all project to look at code scope from My GitHub repo which can be found at the end of page.
JavaScript:
import fetch from '@system.fetch'
...
module.exports = {
data:{ ... },
getDataFromAPI:function(e){
var that = this
fetch.fetch({
url: 'API url',
success: function (data) {
},
fail: function (data, code) {
}
})
}
}
Card ability includes a button which is called More Currencies. When users click it, they will be redirected to Currency Page which is in App. If developers want to create this feature, they need to use Router API and create a deep link.
JavaScript:
import router from "@system.router"
...
const currencyPageUri ="referenceapp://bank/currencies"//DeepLink of Currency Page
redirectToApp:function(){
//deeplink must be called to jump app page
router.push({uri:currencyPageUri});
}
Card Ability Configuration Steps​When Developers finish card development, they need to start an card ability in Smart service page. I said before If you want to create an ability, you need to have an Enterprise account.
This part includes only important section for Ability configuration.
When Start to configure ability , need to select a Site like Europe, Russia and Asia-Africa-Latin America(AALA).If you want to publish you ability all regions , You need to create same ability 3 times for different regions.
All ability includes a fulfillment which describes important settings. Fulfilment includes App URLs which users click to open app, qucikApp or H5 page.
Go to service button is important for card and content abilities. After Users click this, They will be redirected to service which may be app, quickApp or HTML 5 page.
Card Ability Test​After Finish Card development and configuration , Cards can be tested using Huawei Ability Test tool which can be downloaded from Huawei App Gallery or real device .
Developers just need to generate a QR code and then scan it with Huawei ability test tool.
If Real device test tool is wanted to use, user test list should be created on HAG configuration.
References​Card Ability : Link
Configuration Guide : Link
Test Guide : Link
Repo includes card ability example.
GitHub - SerkanMUTLU/Card-Ability-Example at dev
Contribute to SerkanMUTLU/Card-Ability-Example development by creating an account on GitHub.
github.com

Categories

Resources