Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
406 views
in Technique[技术] by (71.8m points)

Do all apps that implement huawei iap need to have a .huawei sufix in the package name?

If an app integrates huawai iap, must it have a package name with a .huawei suffix in order for it to be accepted in AppGallery? (Assuming the app belongs in the App category - I know that apps in Game category must have a package name with a .huawei suffix)

question from:https://stackoverflow.com/questions/65920040/do-all-apps-that-implement-huawei-iap-need-to-have-a-huawei-sufix-in-the-packag

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

For the package name used in Huawei App. Gallery, current requirements are as follows:

  1. Do not include the word “. huawei” or “.HUAWEI” in app package name even if the app is integrated with Huawei IAP, it will be rejected by HAG (Huawei App. Gallery). Exception: A game that uses Huawei IAP must include “. huawei” or “.HUAWEI” in app package name.
  2. GMS APK: Use the same exact APK as the one from GPS (Google Play Store) to upload as GMS APK to HAG. This will ensure that both app stores will treat it as the same app in the event that a phone has both GPS and HAG installed.
  3. HMS APK: Use a different package name and key signature to sign APKs for HAG. This will ensure that both app stores will not treat both APKs as the same and automatically overwriting each other. WARNING: DO NOT use the same key signature and same package name on both app stores, doing so may break your user program data like In-app Purchases (IAP) history in Huawei legacy phones that have both GPS and HAG installed.
  4. When creating a different package name for HAG, please add suffix “.ag” to differentiate the APKs. For example: com.example.myapp.ag. WARNING: Doing so will allow your user to install two APKs (two app icons) with the same app name in their phone, but is necessary to prevent GPS and HAG from overwriting each other.
  5. Do not change your package name after confirming with Huawei the name you plan to have. The package name is directly linked to the Huawei incentive agreement.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...