目录

Overview

An online game is a game that requires Internet connection.

After integrating the basic game service, an online game allows users to sign in with a HUAWEI ID or an official game account on the multi-provider sign-in panel.

Use Cases

[h2]Sign-in with a HUAWEI ID

An online game must integrate HUAWEI ID sign-in.

After the integration, Huawei's platform assigns a player's playerId/openId in HarmonyOS 4 and earlier to their gamePlayerId in HarmonyOS 5.0 and later, enabling interoperability for account assets (such as the character, region and server information, and game progress information) across versions. This will not cause any changes to the HUAWEI IDs, your server, or database.

For HUAWEI IDs, the basic game service provides identity verification and anti-addiction for minors, and IAP Kit provides payment compliance control (for example, payment limits for minors).

[h2]Sign-in with an Official Game Account

If your game has an official package and its own official account system, it must support sign-in based on the official game account. In addition, the game needs to implement interoperability for account assets between the official game package and the game package for HarmonyOS 5.0 and later.

You need to implement identity verification, anti-addiction for minors, and payment compliance control yourself for the official game account.

When users sign in with the official game account, devices running HarmonyOS 5.0 or later have an additional requirement: the device's basic game service will perform identity verification and anti-addiction for minors based on the HUAWEI ID signed in on the device. Even so, you still need to implement identity verification, anti-addiction for minors, and payment compliance control for sign-in based on the official game account.

[h2]Account Relationship Overview

User Experience of Online Games

This section describes the game sign-in experience.

[h2]First Sign-in

When a user launches the game for the first time, the multi-provider sign-in panel is displayed.

[h2]Subsequent Sign-ins

On subsequent launches, the game automatically uses the sign-in account from the user's previous session. For details about scenarios such as account switch and re-sign-in, please refer to In-Game Account Switch.