Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best way to deploy the app for both Google Play and Huawei's App Gallery using Flutter?

We already publish multiple apps in Google Play integrated with GMS using Flutter. Right now, we want to publish the existing app to Huawei App Gallery. Currently, the app is integrated with both GMS as well as HMS for push notification and it is working well. To differentiate the app, we sign the apk for App Gallery with a different signature than the Google Play store.

After some research, we found out that the app bundle id needs to end with .huawei suffix to integrate with IAP. We don't use any IAP but might in the future. However, we faced some problems when building the app since GMS's bundle id doesn't use the .huawei suffix. We prefer combining the same codebase for both Google Play and App Gallery.

My question is that is it necessary to include the .huawei suffix for app bundle id released in Huawei App Gallery. If yes, what is the best way to deploy the app for both Google Play and App Gallery using Flutter.

like image 877
Hafiz Mokhtar Avatar asked Jan 05 '21 03:01

Hafiz Mokhtar


2 Answers

My question is that is it necessary to include the .huawei suffix for app bundle id released in Huawei App Gallery.

Please confirm your app category to be released first:

  1. For common apps, .huawei is not mandatory.
  2. For game apps, .huawei is mandatory.

In the scenario where the package name of a game app is forcibly changed, you are advised to use multiple channel packaging. Add the .huawei suffix to the package name in Huawei channel. Change the package name in productFlavor in the build.gradle file under the app directory.

flavorDimensions "flavor"
productFlavors{
    huawei {
        applicationId "com.huawei"
        dimension "flavor"
    }
    appMarket2{
        applicationId "com.appMarket2"
        dimension "flavor"
    }
}

For details about multi-channel packaging, please refer to docs.

like image 193
shirley Avatar answered Oct 10 '22 10:10

shirley


My question is that is it necessary to include the .huawei suffix for app bundle id released in Huawei App Gallery.

Please confirm your app category to be released first:

  1. For common apps, .huawei is not mandatory.
  2. For game apps, .huawei is mandatory.

In the scenario where the package name of a game app is forcibly changed, you are advised to use multiple channel packaging. Add the .huawei suffix to the package name in Huawei channel. Change the package name in productFlavor in the build.gradle file under the app directory.

flavorDimensions "flavor"
productFlavors{
    huawei {
        applicationId "com.huawei"
        dimension "flavor"
    }
    appMarket2{
        applicationId "com.appMarket2"
        dimension "flavor"
    }
}

For details about multi-channel packaging, please refer to docs.

like image 41
zhangxaochen Avatar answered Oct 10 '22 10:10

zhangxaochen