Unity requires access to Huawei HMS SDK, package name must end with .HUAWEI

Viewed 1254

I'm receiving an error in Unity that is preventing me to progress wiith my development.

3.[Description]:We found that your game contains a third-party account system,in-app paid games can not contain third-party account system in addition to Huawei account; [Suggestion]:Please delete other account systems except Huawei account,game account system needs to be connected to Huawei account,it requires access to Huawei HMS SDK, package name must end with .HUAWEI,guidance link:https://developer.huawei.com/consumer/cn/hms [Test Environment]: Wi-Fi connection,SD card, nova2 with Android 7.0+ EMUI5.1,mate9 pro with Android 8.0+ EMUI8.0,Mate20 with Android 10 + EMUI 10.0.0,Multilingual environment.

Does anybody have a solution?

4 Answers

According to documentation if you are using IAP Service - you will have to add suffix .huawei to your app's package name -> i.e.. com.example.mygame.huawei

Check out documentation: https://developer.huawei.com/consumer/en/doc/development/HMS-Guides/panorama-galleryconnect

It says:

2 . Creating an App

Create an app by referring to Creating a Project and Creating an App in the Project. Set the following parameters as described:

● Package type: APK (Android app)

● Device: Mobile phone

● Package name: Must be the same as the APK name. For apps using the HMS SDK for in-app payment, the package name must end with .HUAWEI or .huawei. Otherwise, your app will be rejected by the reviewer.

According to my experience - it's "must have" only for games.

And there is no way to change the packagename once you set it up (uploaded apk/aab) in AppGallery Connect.

The only way is to delete the project and create a new one.

There are two reasons for your apps being rejected by the reviewer:

  1. The developer should integrated HUAWEI Account Kit into the app.
  2. The package name must end with .HUAWEI or .huawei.

If you want your app released , including Chinese mainland, HUAWEI Account Kit is mandatory. For more information, see Development Guide for AppGalleryKit Game.

Related