19

Some Huawei mobile devices don't have the Google Play Store and have the Huawei AppGallery instead. Since Flutter is for cross-platform development (iOS and Android), it may be desirable to propose Flutter developed apps through the Huawei AppGallery.

The Huawei devices without the Google Play Store are still using Android and the applications to upload to the Huawei AppGallery must have the apk extension (just like in the Google Play Store). These are hunches that at least some Google Play Store applications can be proposed on the Huawei AppGallery. However, I did not find any proof or confirmation of this. Nor any clear perimeter for this compatibility. For example, some services may not work or may not be accepted on the Huawei AppGallery for technical or legal reasons. One part of this perimeter is the use of Flutter to develop the application.

So, my question is, can a Flutter developed application be compatible with the Huawei AppGallery and if so, under which conditions?

Edit after first app publication 2020 04 13

My first Flutter app has just been published on the Huawei AppGallery. This answers the first part of the question. Still, as this app is quite minimalist, this doesn't answer the most important part which is: under which conditions can a Flutter app be published on the Huawei AppGallery?

4

4 回答 4

13

As long as your application complies with the regulations of AppGallery, there should not be any problem it. https://developer.huawei.com/consumer/en/doc/30202

AppGallery does not have any restriction on the language application developed with, no need to worry about it; flutter, cordova, react.native, xamarin they are fine.

Just a point to take care. If you are using SDKs or services those depend on Google Play services, when you have published your application on AppGallery, it will be visible only for Huawei devices supports Google Play Services.

于 2020-04-22T11:02:41.360 回答
9

There are no restrictions on the Flutter apps. They can be released on HUAWEI AppGallery.

How to release an app:

  1. Register and sign in to your HUAWEI Developer account, go to AppGallery Connect, create a new app, and upload the APK.
  2. Set languages and basic app information, such as app name, introduction, screenshots, and app category.
  3. Select your business model (free or premium), release countries and regions, and a link to the privacy statement.
  4. Confirm that all of the information provided is correct, and submit your app for review.

As @captaink said, please also refer to AppGallery Review Guidelines.


If your app has integrated GMS Kit, these capabilities provided via GMS are not available on Huawei phones with HMS. If you want your app to run on these phones, integrate Huawei Mobile Services (HMS).

Huawei has provided some HMS Core kit plugins for Flutter. They have been published to public open source communities. You can also find them on GitHub.

Account Kit plugins for Flutter

Ads Kit plugins for Flutter

Analytics Kit plugins for Flutter

AR Kit plugin for Flutter

In-App Purchases Kit plugin for Flutter

Location Kit plugins for Flutter

Map Kit plugins for Flutter

Push Kit plugins for Flutter

Scan Kit plugin for Flutter

Site Kit plugins for Flutter

于 2020-05-15T09:12:55.747 回答
6

In theory, yes it could. Huawei uses an OS called Harmony OS.

The Arc compiler in Harmony OS supports all the major programming languages including C/, C++, Java, JavaScript and Kotlin.

Flutter compiles Dart code to native device code (Java, and Kotlin for Android and Swift for iOS). Huawei is making an Arc compiler that supposedly makes it easy to turn Android apps to Harmony OS apps. What does this mean for Flutter and the AppGallery? I'm not sure.

So to your question, in theory, yes it could but I would just recommend coding your own app in one of the languages mentioned above and using the Arc compiler to put it on Huawei's AppGallery.

UPDATE:

So apparently you can just put an APK on the Huawei App Gallery: https://developer.huawei.com/consumer/en/doc/distribution/app/30204. Since you can obviously make APKs in Flutter, I don't see why not.

于 2019-12-15T17:27:44.200 回答
2

Update on this subject: we received the communication from Huawei technical staff to delete all Google Play Services in the app and substitute them with theirs Huawei Mobile Services, before the end of November 2020. It seems that after this date they don't accept Google Play Services inside the apps. Don't know if app published before will still be there after.

于 2020-11-12T10:38:38.260 回答