Hello, Habr! My name is Mikhail, I provide technical support for developers in the field of Huawei Mobile Service integration. And today I want to tell you about our tools that can be useful for mobile game developers. Our friends from Azur Games have already talked about how you can quickly adapt the game . In this article, I will tell you in more detail about Huawei Game Service, which implements basic in-game functions, as well as tools for app monetization, advertising and analytics.
Huawei Game Service at the application level
Huawei Game Service is part of the HMS ecosystem for gaming. It works at the application level and at the system level. At the application level, HGS (Huawei Game Service) allows:
- . 200 . Game Service , . ID, , , , . , , : — ; — , ; — , .
- . , , , . , , -. .
- . . , , - , .
- . Game Service 70 , .
- . Huawei Drive, / .
Huawei Game Services
Huawei Game Service is based on the GameTurbo Engine , which links the operating system and the application itself. This allows load balancing with limited system resources - the application can pass the game scene, configuration, and other information to the system to dynamically allocate resources. The system, in turn, provides information about its status so that the application parameters can be changed and adapted for a seamless user interaction with the game.
Thus, the application can provide for scenarios of delays for the user and make them as invisible as possible. This approach can be useful for increasing the number of game scenes between which you can configure a flexible and smoother transition.
Monetization tools
When working with payment services, the Huawei ecosystem requires mandatory registration of a legal entity. After confirmation of the data, work with advertising and in-app purchases will be available. To do this, use:
- Ads Kit that allows you to implement personalized ads. It integrates with third-party ad platforms (such as adjust ) to track conversions and traffic without compromising privacy requirements - each user has a unique encrypted OAID.
- In-App Purchases (IAP) — . : , . . IAP 78 170 . , . IAP , Huawei.
There are several ways in the Huawei ecosystem that you can drive user activity. To increase engagement in the game, we suggest using the Push Kit , which allows you to send personalized notifications with automatic language selection. In turn, developers can see a complete report on the viewing and delivery of notifications. For notifications, you can set up personalized groups that Push Kit can take from the Analytics Kit. Developers can configure different event scripts to send notifications and send new ones based on the cache of past notifications. There is also the possibility of visual customization of push notifications.
Using the Gift moduleyou can set up a system of gifts that players will receive for certain actions in the game or for downloading the application itself. Gifts can have a unique serial number, and to receive them, the user will need to follow the instructions, or without the serial number, and then they will be received by everyone who performed a certain action.
Another way to reward users is Huawei Points , the internal currency that can be used to pay in apps and games. The system is convenient for increasing in-game purchases and attracting more players. They can come with their points and make purchases immediately as part of the gameplay, or earn points and use them to make purchases in other Huawei apps, which increases the motivation to play.
Points can currently be used to purchase paid apps, virtual goods, privileges or in-app services, exchange for in-game currencies (such as gold coins and diamonds), and pay subscriptions to Huawei Video, Huawei Music and Huawei Themes. ...
Game data tools
Currently, there are about 30 different whales in the HMS core to work with different functions. For most games, it will be enough to connect only three of them:
- Analytics Kit 500 , , . , , , . .
- Account Kit (SMS- ) Huawei ID, . QR-.
- Drive Kit, . Drive API, Huawei Android. .
As a rule, adaptation of applications for HMS does not take so much effort, and the main task comes down to ensuring work with two platforms at once: from Google and from Huawei, and there has already been an article about this on Habré .
If you have a game on the Unity engine, then you can speed up the implementation of HMS using the plugin for Android Studio or the Unity Distribution Portal , which allows you to create a single APK for several platforms at once, including AppGallery. There is also direct integration with the Cocos Engine.
It will be convenient for small teams to use cloud-based testing and debugging services.that allow you to test the app without physically accessing Huawei phones. One of our next articles will be about them.
How to publish your game
To work with AppGallery, follow these steps:
- Register for AppGallery Connect . It is a universal console for applications (including games) that allows you to publish, give early access, and get statistics. To register, you must indicate your legal entity and add payment details. The verification process can take up to 4 days.
- Create a project.
- Add the application to the project.
- Add primary integrations with various Huawei services of your choice. Add scripts and certificates to interact with other whales.
- Publish the app.
That's all for now. If you have any questions about the capabilities of our platform, listing your application in the AppGallery, or technical questions about Huawei tools, ask them in the comments.