Releasing Your Game on HUAWEI AppGallery via UDP
Background
These posts outline the first steps required for developing a Unity game:
Unity Editor Installation and APK Packaging
How Can I Use the HUAWEI Game Service Demo Provided by Unity?
Initializing a Huawei Game and Implementing HUAWEI ID Sign-in Using Unity
How to Integrate Unity IAP for a Game to Be Released on HUAWEI AppGallery
Here, we have built an APK that provides a range of basic functions, such as payment and game sign-in. This post details the process for releasing the APK to HUAWEI AppGallery, walking you through each step in the process and showing the final effects.
Uploading the APK to UDP
UDP is short for Unity Distribution Portal. First, we’ll need to upload the generated APK as follows.
{
"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"
}
The following UI information is displayed on the figure below.
UDP Initialization: The initialize API of UDP has been called in the game.
IAP Transaction: The purchase API of UDP has been called in the game.
The two APIs must be called and tested prior to the game’s release.
Completing the Necessary Configurations Prior to the Game’s Release
You can refer to the Unity official materials for reference:
https://distribute.dashboard.unity.com/udp/guideDoc/HUAWEI
I have registered as a Huawei developer account, and created game information in AppGallery Connect, and related information has been recorded (see this post). Therefore, I’ll only need to supplement the information that has not yet been completed.
After a successful release, the Publish page will display. Click Register your game with HUAWEI AppGallery.
In the displayed dialog box, click Next.
Then, in the following dialog box, click Link game to UDP.
After linking, the following page will display. In this case, we’ll need to fill in the game registration information by referring to the Unity materials.
Please note that when you obtain the PubKey field in the game registration information, if the following page is displayed in AppGallery Connect, you’ll need to click Settings to obtain the payment public key.
Set PubKey and privacyPolicy in the game information, and then click REGISTER. The page below will then display. You can see that the game is in Ready to publish state.
There are two options in the drop-down list on the right.
Repack Game: Unity only uses Huawei SDK to repack the uploaded APK.
Submit to Store: Unity repacks the APK, and uploads the repacked APK to AppGallery Connect for review.
Repacking and Testing Your Game
Here, Repack Game is recommended. You’ll need to test the functions of the APK repacked by Unity before submitting it to Huawei for review.
Click Download to download the successfully repacked game package.
If you encounter any issues during the self-test:
Here, I ran into some issues, so I deleted the original APK from the game information and re-submitted an APK for release. The new package is as follows.
Re-download the package, and continue the test until no problems are detected during the self-test.
If no issues are encountered during the self-test:
You can proceed to the next section.
Releasing Your Game on AppGallery, and Awaiting Huawei’s Review
If no issues are encountered during your self-test, upload the APK once again, and select Submit to Store. Unity will pack the app again, and submit it to Huawei for review. The app information and product information will also be synchronized to AppGallery Connect.
Note: In the past, I thought that after I clicked Repack Game and confirmed that the package is normal, I could submit the package to Huawei for review by clicking Submit to Store. However, in reality, I found that the game and product information did not display after I clicked Submit to Store, which required that I fill in the information again. Therefore, I wouldn’t recommend this option. The details are as follows:
1. The product and game information needs to be maintained in UDP and AppGallery Connect, respectively. You’ll need to fill in the information twice.
2. You won’t be able to view the game release status in each app store via UDP.
Therefore, this solution can be used as an alternative unless a problem that is hard to handle or is caused due to callback failure, occurs during the synchronization of information from UDP to AppGallery Connect.
After I clicked Submit to Store, two warnings were displayed, as shown below.
The first warning is related to the configuration of the SHA-256 certificate fingerprint. I previously completed the configuration in this post. Here, I can just ignore it.
The second warning indicates that the release time is not set. In this case, after my game is submitted to Huawei for review, it will be released immediately after being approved. Therefore, if you do not want your game to be automatically released right after being approved by Huawei, click Modify to set the release time. I’m ignoring this setting here.
You can see that the game has been submitted to AppGallery Connect for review.
After signing in to AppGallery Connect, you’ll be able to see:
1. On the app information page, Unity has synchronized the app information to AppGallery Connect.
2. On the product management page, Unity has synchronized product information to AppGallery Connect.
3. The game is under review.
Thus far, I have successfully released a game to AppGallery through Unity, and am in the process of awaiting Huawei’s review result.
To complete the release process outlined in this post, you’ll need to be familiar with the development and release process for Huawei games in Unity. For more details, you can refer to the following posts:
Unity Editor Installation and APK Packaging: https://forums.developer.huawei.com/forumPortal/en/topic/0204435788744370088?fid=0101187876626530001
How Can I Use the HUAWEI Game Service Demo Provided by Unity?: https://forums.developer.huawei.com/forumPortal/en/topic/0204451267476400094?fid=0101188387844930001
Initializing a Huawei Game and Implementing HUAWEI ID Sign-in Using Unity: https://forums.developer.huawei.com/forumPortal/en/topic/0202458249587900041?fid=0101188387844930001
How to Integrate Unity IAP for a Game to Be Released on HUAWEI AppGallery: https://forums.developer.huawei.com/forumPortal/en/topic/0201472979681270115?fid=0101188387844930001
thanks for sharing
shikkerimath said:
thanks for sharing
Click to expand...
Click to collapse
thanks for your liking.
Related
More information like this, you can visit HUAWEI Developer Forum
Introduction.
In this article I would like to delve into a topic that has been somewhat recurrent in the questions in the communities, which is the UDP distribution to Huawei App Gallery. So through this this text we will understand how to distribute our game in Unity UDP.
Let's start with a little theory. d( ̄◇ ̄)b
What is UDP?
This service allows us to distribute our game to multiple Android stores through the same concentrator (hub) Using the same build.
Which stores are supported in UDP?
Samsung Galaxy Store
One Store
Mi GetApps
Huawei App Gallery
QooApp Game Store
Share it Game Store
Tpay Mobile Stores
AppTutti
VivePort
{
"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"
}
Which versions of Unity are supported?
Supports from 5.6.1 and later, but it is recommended to use 2018.4+
What is the price of UDP?
It is free for developers and you can download it from the package manager in your project.
Procedure on UDP Platform
Let's see how we install it.
Once we have the distribution Portal installed, we should have the following menu in the Window tab.
Now we have to create an ID in case we don't have one already created.
Once the Unity ID has been created it will be necessary to go to the Unity Distribution portal page, in this portal we can create our game for distribution.
https://distribute.dashboard.unity.com
Inside the portal we have to create a new game on the console
Now we must capture the data of our game
After we complete the filling of data, we have to create a Release Version of our Game. We can create a revision TAG and some notes
Now its time to select the store where we want to release our game so
We are going to select Huawei App Gallery so I want to share with you the process to of releasing on this store.
Procedure on App Gallery Console
Sign up to HUAWEI AppGallery
The First requisite is to have a Huawei developer verified account. Im quite sure that you have one because you are surfing through this Forum. So lets skip this step.
Sign in into AGC to create yout Game App
Create your game on AppGallery
Fill the forms on the registration of App. Dont forget to select Game
Important!! o(・_・)9
Be sure to match your game genre to the one you choose on UDP
Like most of the Kits of HMS we have to set the package name manually so take the name that you assign on your Unity Project
link your game to UDP
Now Go! back to UDP Distribution Portal and Click Link game to UDP and authorize the link by authenticating with your HUAWEI account.
Your game should now be linked between AppGallery and UDP. If an error pops up, be sure to correct it with the error details provided.
Complete your game registration
Once your game is linked to UDP successfully, you will reach the Game Registration form. The greyed-out fields were retrieved from AppGallery during the linking process. The remaining fields need to be input manually before you can complete the registration of your game.
Where can i find the following information?
This information can be found in your AGC Console
Final Step Submitting your game to HUAWEI AppGallery
Go the the Publish section
Any warnings or errors will be flagged ahead of submitting your game to AppGallery. Errors must be addressed before you can submit.
You can set a launch date for your game, but only before submitting it.
When you’re satisfied, click “Publish” at the top right of the screen.
You will be sent to the Status section showing your game’s submission progress.
Once your submission is successful, you still have one last step to perform on the AppGallery console.
Conclusion
I hope this small guide helps you to understand and complete your UDP Publication
I have written series of article on Quick App. If you are new to Quick App refer my previous articles.
Quick App set up
A Novice Journey Towards Quick App ( Part 2 )
A Novice Journey Towards Quick App ( Part 3 )
Introduction
In App Purchase makes user to make online payment. In order make online payment in quick app let’s see how to integrate the IAP in Quick App.
Follow the steps
Step 1: Sign in to AppGallery Connect and select My projects.
Step 2: Select the project which you need to enable the service.
Step 3: Click the Manage API tab, Enable In-App purchase.
{
"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"
}
Above screen will show when Merchant service is not enabled. If you don’t have Merchant account follow the Enable Merchant service.
Step 4: Sign in to HUAWEI Developer. Click Console.
Step 5: Click App Services in the navigation bar on the left and select HUAWEI IAP.
Step 6: From the product list, find the app for which the HUAWEI IAP service will be configured. Then, click Update.
Step 7: Configure HUAWEI IAP service information.
Callback Address: can be modified after configuration. Ensure that the app's callback address can be visited. The value can contain a maximum of 255 characters and cannot end with a backslash (\). The callback address can be a multi-level domain name, where special characters such as underscores(_) cannot be contained. Note that callback address is not required for apps without a server.
Signed Certificate: Navigate to Tools > Certificate
Make sure you copy the generated certificates to sign > debug folder from the release folder.
Step 8: After completing the configuration, click Next, and then Submit.
Enable Merchant service
We need to be a merchant to make use of In-App Purchase in Quick App.
Note: Once your account becomes merchant, it takes 2-3 business day for verification.
Follow steps to enable merchant service
Step 1: Sign in to HUAWEI Developer. Click Console.
Step 2: In Settings, you will find Merchant Service as shown below.
Step 3: Enter the details in Bank information, as shown below.
Step 4: Enter details in Tax information node, as shown below.
Step 5: Click Submit to save the record for verification.
Create test account
Need sandbox account to test the IAP in quick App. During application development and testing we can use the sandbox account to make payment. During the testing period, when a purchase is initiated by the test account, the Huawei IAP server will identify the test account and directly process a successful payment, without real payments made.
Follow the steps to enable the sandbox account
Step 1: Navigate to AGC and select users and permissions.
Step 2: Select Test account, as shown below.
Step 3: Click Add button to add Test account, as shown below.
Huawei In-App purchase information
1. Sign in to HUAWEI Developer. Click Console.
2. Click App Services in the navigation bar on the left and select HUAWEI IAP.
3. Click the quick app for which HUAWEI IAP Service has been configured.
4. Find HUAWEI IAP Service parameters in the Service Info section.
APP ID: unique ID assigned by HUAWEI Developer to an app. Please store it properly for future use.
Payment ID: Used to configure the merchantId parameter in the development process.
Private key: RSA private key, used to sign the requested parameters when a developer's app invokes HMS SDK payment method.
Public key: RSA public key, used to verify the signature when a developer's app receives payment results from HMS SDK.
Result
Coming soon in next article.
Conclusion
In this article, we have learnt how integrate IAP in Quick App. In upcoming article I will continue the IAP adding products and product details and making payment online.
Reference
In-App Purchase official document
Do we need to be enterprise developer in order to work with HMS IAP ?
Introduction
App Linking or deep linking is a technology which enable businesses to provide ease of access for their potential services.
Deep links are links which re-direct users directly to a specific app or application feature instead of a website or store.
They are used to re-direct users straight to in-app locations, saving the users time and energy.
Deep linking does this by specifying a custom URL scheme (iOS Universal Links) or an intent URL (on Android devices) that opens your app if it’s already installed. Deep links can also be set to direct users to specific events or pages.
Huawei App Linking leverage developers/users to create cross platform links which can work as defined and can be distributed via multiple channels to users.
When the user taps the link, it will be re-directed to the specified in-app content.
{
"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"
}
Huawei App Linking has multiple functions:
1. Support for deferred deep links
2. Link display in card form
3. Data statistics
Huawei App Linking supports the link creation in multiple ways:
1. Creating a link in AppGallery Connect
2. Creating a link by calling APIs on the client
3. Manually constructing a link
Use Case
There could be multiple use cases for this capability, however I will throw some light on a use case which is most commonly adapted by the applications with complex UX and high transmission between different in-app pages.
In this scenario one application shares the link between counter applications to re-direct to in-app content of a third application.
We will have an application which shares the app link at one end to another (It can be a simple chat platform capability). At the receiver end, user can click on the link and directly navigate to the specific in-app content.
Working
Following are the steps to develop this scenario
1. Development of news application which will be deployed locally.
2. Development of share application which will be deployed locally.
3. Integration of Huawei App Linking Api’s to receive the link and re-direct to the in-app content of news app.
4. Enabling the App linking service in AppGallery Connect.
5. Creating deep link through AppGallery Connect.
Development Overview
1. Must have a Huawei Developer Account
2. Must have Android Studio 3.0 or later
3. Must have a Huawei phone with HMS Core 4.0.2.300 or later
4. EMUI 3.0 or later
Software Requirements
1. Java SDK 1.7 or later
2. Android 5.0 or later
Preparation
1. Create an app or project in Android Studio.
2. Create an app and project in the Huawei AppGallery Connect.
3. Provide the SHA Key and App Package name of the project for which you want the App Linking to be done (Example: News application)
4. Download the agconnect-services.json file and paste to the app folder of your android studio.
Integration
Add below to build.gradle (project)file, under buildscript/repositories and allprojects/repositories.
Code:
Maven {url 'http://developer.huawei.com/repo/'}
Add below to build.gradle (app) file, under dependencies to use the App Linking SDK.
Code:
dependencies{
// Import the SDK.
implementation 'com.huawei.agconnect:agconnect-applinking:1.4.1.300'
}
News Application
News application is developed with multiple content and complex UX to show the capability of the Huawei App Linking.
I will highlight some of the important code blocks for this application.
Main Activity
This activity is the entry point for the application which will have the navigation tab to handle the multiple news categories.
Also, it receives the App Link, read it and re-direct it to the corresponding content.
Creating a link in AppGallery Connect to directly open the Science tab for the News Application through a link
1. Login to AppGallery Connect.
2. Choose My Projects > NewsWorld(App Linking).
3. Choose > Growing > App Linking>Enable now
More details, you can visit https://forums.developer.huawei.com/forumPortal/en/topic/0204412564790410224
Curious about how to integrate HMS Core kits into your apps? Or how to convert your apps integrated with third-party mobile services? Want the quickest and simplest way to release them on HUAWEI AppGallery?
Introducing HMS Toolkit.
This IDE plugin provides tools such as Getting Started, Configuration Wizard, and Repository and is designed for every stage of development: creation, coding, debugging, testing, releasing, and quality analysis. Armed with HMS Toolkit, you too can develop your own HMS Core-integrated apps in Android Studio and release them at lower cost and higher efficiency.
{
"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"
}
Every development phase, faster and easier
Getting Started demonstrates each HMS Core kit.
Configuration Wizard walks you through all the necessary settings, so no more looking up the manual or switching tools. Configure multiple kits at the same time, for different scenarios, so no more four-hour jobs – now just 5 minutes.
Repository shows you SDK version, package size, and usage to make integration and version a one-stop-shop. Automatically add an SDK library dependency after you select the library, get the latest SDK version, and upgrade the SDK with just one click.
Coding Assistant offers HMS Core API descriptions and sample code and templates by scenario. Drag and drop to generate and configure code, and get automatic issue warnings and recommendations.
Convertor helps you move from third-party APIs to HMS APIs. Convert your source code either with Add HMS API (add code to call HMS APIs to match third-party APIs so both can be called as needed), or To HMS API (replace code to call third-party APIs with code to match HMS APIs so only HMS APIs can be called).
Cloud Debugging uses a remote real device to quickly locate and resolve problems. Currently, choose from various Huawei devices if you're in the Chinese mainland, Russia, Asia Pacific, and West Europe. Quickly access the nearest site for single-step or ADB debugging. Drag and drop to upload files, zoom in and out onscreen, and toggle definitions between smooth, SD, and HD on the remote real device as needed.
Cloud Testing tests your app in one click to quickly detect problems on any device. Get screenshots for compatibility, stability, performance, and power consumption.
Publish to AppGallery Connect makes uploading easier to do from the IDE. Choose to upload either the packaged APK of the current project (default) or a local package, and its parameters will be checked against the release requirements. Once it's uploaded, you'll be prompted to access the HUAWEI AppGallery Connect release page.
HMS Toolkit also allows you to generate an API or demo project in one click for quickly verifying and calling the image classification model in your app.
Easy to install
Start Android Studio, go to File > Settings > Plugins > Marketplace, search for HMS Toolkit, and click Install. Or sign in and get it on the HUAWEI Developers official website.
HMS Toolkit will continue to be optimized to help you and other developers around the world create a smart life for users.
If you have any questions, please submit a ticket. Huawei technical support will reply to you as soon as possible.
For more information about HMS Toolkit, go to >>
For how to quickly integrate each kit using HMS Toolkit, go to >>
For more operation tutorials, go to >>
For more details, you can go to:
l Our official website
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
Original Source
HMS Tool kits supports all GMS services?
More and more advertisers are using HUAWEI Ads to promote their apps or web pages in order to attract more users and increase revenue. This article introduces how to track clicks and conversion rates of ads delivered using HUAWEI Ads. HUAWEI Ads works with Dynamic Tag Manager (DTM) to help you easily track conversions on web pages, as well as ad performance.
First of all, what is ad conversion tracking?
Let's use Huawei Vmall as an example. Ads for Vmall are served by HUAWEI Ads. After a user clicks such an ad to access Vmall, user actions, such as adding products to the shopping cart and purchasing products, on one or more in-app pages in a given period (30 days in general) will be tracked.
Now, let's take a look at ad conversion.
When a user clicks an ad to access Vmall and purchases a product in Vmall, this is considered as an ad conversion because a user has been converted into a paying user.
Next, let's see how to configure conversion tracking for web pages in DTM.
You can configure conversion tracking for landing pages, across web pages, or across domains and select an appropriate tracking mode for each scenario in DTM. The configuration involves the following steps:
1. Configuration preparations
2. Conversion tracking for landing pages
3. Cross-page conversion tracking for a single domain
4. Cross-domain conversion tracking
First, you need to perform the following operations before configuring conversion tracking:
1. Register a HUAWEI ID.
2. Register a HUAWEI Ads account.
3. Embed the JavaScript code obtained from DTM into the web page to be tracked.
Procedure:
Step 1 Access AppGallery Connect and register a HUAWEI ID.
Step 2 Access HUAWEI Ads and register an account.
You can use your HUAWEI ID to register a HUAWEI Ads account.
Step 3 Embed the JavaScript code obtained from DTM into the web page to be tracked.
1. Add a web app.
Sign in to AppGallery Connect, select My projects, click Add project, enter a project name, and click OK.
{
"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"
}
Click Add app. On the page displayed, select Web for Platform, set App name, and click OK.
2. Create a configuration in DTM.
In AppGallery Connect, go to Grow > Dynamic Tag Management.
Click Enable Dynamic Tag Manager. In the dialog box displayed, set Configuration name and URL, and click OK. Embed the generated JavaScript code snippet into all web pages to be promoted. The code needs to be embedded only once and will be valid indefinitely.
Step 4 Use Google Tag Manager (GTM) to embed the DTM-Web tracking code snippet.
During version development, it is unpractical to modify the code snippet and release it to the live network immediately. So, how can the code snippet be embedded into web pages without version release?
As many web pages integrate GTM, you can use it to embed the DTM code. The detailed configuration process is as follows:
1. Sign in to GTM and select the container corresponding to the web page to track.
2. Create a tag.
Go to Tags > New. On the page displayed, set Tag Type to Custom HTML and copy the DTM code snippet to the HTML area. Set Firing Triggers to Page View, enter a tag name, and click Save.
3. Create and release a version.
Click Submit. On the page displayed, select Publish and Create Version, enter a version name, and click Publish.
You have now completed the necessary preparations for configuring conversion tracking for web pages.
To learn more, please visit:
HUAWEI Developers official website
Development Guide
Reddit to join developer discussions
GitHub or Gitee to download the demo and sample code
Stack Overflow to solve integration problems
Original Source