How to Develop Flutter Apps for Huawei Devices

Updated 27 July 2026

Save

Flutter Apps for Huawei Devices are becoming increasingly important as Huawei continues to expand its ecosystem with Huawei Mobile Services (HMS).

For Huawei smartphones, replace Google Mobile Services (GMS) APIs with Huawei Mobile Services (HMS) to ensure full compatibility.

This guide explains how to develop Flutter Apps for Huawei Devices and configure your project with Huawei Mobile Services (HMS).

Additionally, you’ll learn to integrate Huawei Push Kit, Map Kit, Location Kit, Analytics Kit, and Account Kit with practical Flutter code examples.

Finally, you’ll learn how to publish Flutter Apps for Huawei Devices to Huawei AppGallery with step-by-step instructions.

You can read more interesting blogs by mobikul .

In this guide, you’ll learn:

Why Huawei Devices Need HMS

Developing Flutter apps for Huawei devices requires replacing Google Mobile Services (GMS) with Huawei Mobile Services (HMS).

This enables features such as push notifications, maps, analytics, authentication, and location services.

Examples:

FeatureGoogleHuawei
MapsGoogle MapsHuawei Map Kit
Push NotificationsFirebase Cloud MessagingHuawei Push Kit
AnalyticsFirebase AnalyticsHuawei Analytics Kit
AuthenticationGoogle Sign-InHuawei Account Kit
LocationGoogle Location ServicesHuawei Location Kit
In-App PurchaseGoogle Play BillingHuawei IAP Kit
Huawei provides Huawei Mobile Services (HMS Core) as an alternative.

HMS Architecture

How to Develop Flutter Apps for Huawei Devices

Prerequisites

Before you begin, configure Flutter, Android Studio, and your Huawei Developer account.

Step 1: Configure Gradle

Project Level build.gradle

App Level build.gradle

Step 2: Add HMS Flutter Packages

pubspec.yaml

Install packages

Step 3: Add AGConnect Configuration

Place the configuration file inside:

Step 4: Android Permissions

AndroidManifest.xml

Huawei Push Kit

Configure Huawei Push Kit

Receive Push Token

Listen for Notifications

Huawei Analytics Kit

Initialize Analytics

Log Analytics Event

Huawei Account Kit

Login with Huawei

Huawei Location Kit

Get Current Location

Huawei Map Kit

Display Huawei Map

Add Marker

Huawei In-App Purchases

Initialize IAP

Load Products

Purchase Product

Detect Huawei Device

Note: For production applications, detect HMS availability instead of relying only on Platform.isAndroid.

Create Push Service Interface

Firebase Push Implementation

Huawei Push Implementation

Build Release APK

Build App Bundle

Verify Flutter Environment

Install Dependencies Again

Best Practices

Publishing to Huawei AppGallery

  1. Create an AppGallery Connect project.
  2. Configure package name and signing certificate.
  3. Download and add agconnect-services.json.
  4. Generate a signed release APK or App Bundle.
  5. Upload the build to AppGallery Connect.
  6. Complete privacy, permissions, screenshots, and store listing information.
  7. Submit the application for review.

Conclusion

Developing Flutter apps for Huawei devices is straightforward once your project is configured with Huawei Mobile Services (HMS).

By integrating Huawei Push Kit, Map Kit, Location Kit, Analytics Kit, Account Kit, and In-App Purchases, you can provide a seamless experience for Huawei users.

Build or migrate your Flutter app and publish it on Huawei AppGallery with HMS.

For more updates, make sure to keep following Mobikul Blogs to learn more about mobile app development.

author
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Start a Project


    success

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home