[Huawei Developers] Mayism:
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.

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