Configuring App Information in AppGallery Connect

Before you start developing an app, configure app information in AppGallery Connect.

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 a Project

Follow instructions in Creating a Project to create a project.

Creating an App

Add an app to your project. For details, please refer to Creating an App. Set relevant parameters as follows:

  • Platform: Android
  • Device: Mobile phone
  • App category: App or Game

Generating a Signing Certificate Fingerprint

The signing certificate fingerprint is used to verify the authenticity of an app. Before releasing an app, you must generate a signing certificate fingerprint locally based on the signing certificate and configure it in AppGallery Connect.

Before you do this, make sure that the following conditions are met:

To generate a signing certificate fingerprint, perform the following steps:

  • Windows
    1. Open the command-line interface (CLI) using the cmd command, and run the cd command to go to the directory where keytool.exe is located. In the following example, the JDK is installed in the Program Files folder in drive C.
      cd C:\Program Files\Java\jdk\bin
    2. Run keytool -list -v -keystore <keystore-file> and respond as prompted. In the command, <keystore-file> indicates the absolute path to the app's signing certificate.

      Example:

      keytool -list -v -keystore C:\TestApp.jks
    3. Obtain the SHA-256 certificate fingerprint.

  • macOS
    1. Open Terminal.

    2. Run keytool -list -v -keystore <keystore-file> and respond as prompted. In the command, <keystore-file> indicates the absolute path to the app's signing certificate.

      Example:

      keytool -list -v -keystore /Users/admin/Downloads/HmsDemo.jks
    3. Obtain the SHA-256 certificate fingerprint.

Configuring the Signing Certificate Fingerprint

  1. Sign in to AppGallery Connect and click My projects.
  2. Find your app project, and click the desired app name.
  3. Go to Project settings > General information. In the App information area, click Add under SHA-256 certificate fingerprint, and enter the obtained SHA-256 certificate fingerprint.

    说明

    In the App information area, you can click next to Client secret to copy the client secret.

  4. Click Save.

Enabling Required Services

To use Map Kit in your app, you first need to enable the service in AppGallery Connect. Skip this step if you have already enabled the service.

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

2. Click the project for which you need to enable Map Kit.

3. Go to the Manage APIs page and toggle on the Map Kit switch.

After enabling the service, you can go to Project settings to set the data processing location and data processing location policies. For details, please refer to Data Processing Location.

Obtaining the API Key

  1. Sign in to AppGallery Connect and click My projects.
  2. Find your app project, and click the app name.
  3. Go to Project settings > General information. In the App information area, click the icon next to API key. The API key will then be copied to the clipboard.

说明

You are advised to take measures for protecting the API key security. For details, please refer to How can I protect the API key?.

搜索
请输入您想要搜索的关键词