目录

Getting Started

Development Environment

Supported Devices

Device Type

OS Version

HMS Core (APK) Version

Phone and tablet

HarmonyOS 2.0 or later

5.0.0.300 or later

Telematics device

HarmonyOS 2.0 or later

6.2.0.300 or later

Huawei Vision and smartwatch (wearable, not lite wearable)

HarmonyOS 2.0 or later

6.5.0.300 or later

The SDK for HarmonyOS (Java) can be used only when your app has only one HarmonyOS Ability Package (HAP).

Development Process

Follow the steps below when you develop an app.

Choose one from the supported sign-in modes to integrate as needed.

No.

Step

Description

1

Preparing a Development Environment

Before developing a HarmonyOS app, make the following preparations:

  1. Prepare a development environment.
  2. Configure app information in AppGallery Connect.
  3. Configure app signing.
  4. Integrate the HMS Core SDK.
  5. Configure obfuscation scripts.
  6. Add permissions.

2

HUAWEI ID Sign-In Without Identity Verification

  1. Your app cannot verify user identity, and thereby is unable to check whether a user is a fake user.
  2. Your app will ask for authorization from a user who signs in for the first time. However, as no identity verification is performed, no verification information expiration will happen.

HUAWEI ID Sign-In via ID Token (OpenID Connect)

  1. Your app will verify user identity, and thereby is able to check whether a user is a fake user.
  2. Your app will ask for authorization from a user who signs in for the first time. After the user's identity verification information expires, your app will ask the user to grant authorization again.

HUAWEI ID Sign-In via Authorization Code (OAuth 2.0)

  1. Your app will verify user identity, and thereby is able to check whether a user is a fake user.
  2. When a user signs in for the first time, your app will request authorization from the user. After the user's identity verification information expires, your app server will use the refresh token to request a new access token from the Account Kit server. No more authorization is required, so this method is more reliable and convenient.