Register your app at Huawei Developer

Learn how to register your app with Huawei Developer to quickly get started with the HMS Unity Plugin.

Registering as a Developer

Before you get started, you must register as a Huawei developer and complete identity verification on HUAWEI Developers. For details, please refer to Registration and Verification.

Creating an App

1. Sign in to AppGallery Connect and click My apps.

2. Click New app next to the app list.

3. Fill in the app information and click OK.

NOTE: If the system displays the message "The number of apps created by your team has reached the upper limit. Please remove some and try again.", handle the problem by referring to General FAQs.

4. Go back to My apps, click the Android apps tab, and check the Android app that you have created. Click the app name to go to the Workspace page. If you have multiple apps with the same name, you can filter them by device type.

For more information please refer to Creating an App Directly.

Determine & Set Package Name

We strongly recommend that the package name ends with .huawei or .HUAWEI. Otherwise, some features may not work properly.

Set your package name in Unity.

File>Build Settings>Player Settings>Other Settings>Package Name

Creating a Project

Click My projects,

Then enter your package name.

Generate a Keystore

Create a Keystore using Unity or Android Tools. make sure your Unity project uses this Keystore under the Build Settings>PlayerSettings>Publishing settings

Generate a signing certificate fingerprint.

During this step, you will need to export the SHA-256 fingerprint by using keytool provided by the JDK and signature file.

  1. Open the command window or terminal and access the bin directory where the JDK is installed.

  2. Run the keytool command in the bin directory to view the signature file and run the command.

    keytool -list -v -keystore D:\Android\WorkSpcae\HmsDemo\app\HmsDemo.jks

  3. Enter the password of the signature file Keystore in the information area. The password is the password used to generate the signature file.

  4. Obtain the SHA-256 fingerprint from the result. Save for the next step.

Hint: Is it too complicated? You can also follow the steps in the video.

(Alternative Way)Obtain the SHA-256 with HMS Key Tool

Obtain a SHA-256 using the HMS Key Tool. You can access the tool by going to Huawei>Utils>Key Tool in your Unity project. You can check out how it was done with the gif below.

Adding Fingerprint Certificate to AppGallery Connect

During this step, you will configure the generated SHA-256 fingerprint in AppGallery Connect.

  1. In AppGallery Connect, go to My Project and select your project.

  2. Go to the App information section, click on the + button and enter the SHA-256 fingerprint that you generated earlier.

  3. Click √ to save the fingerprint.

Enable the Services

Some AppGallery Connect services may require enabling them before use. For example:

Enable Data Processing Locations

Some AppGallery Connect services may require you to specify a location for these services to process your app and user data.

  1. In AppGallery Connect, go to My Project and select your project.

  2. Go to the Project information section, click on the Enable button and select your Data processing location.

  3. Click OK to save.

For more information please refer to Enabling Data Processing Locations.

Last updated