Intermediate: Integrating Huawei Remote Configuration in Flutter QuizApp (Cross platform)

Shiddalingeshwar M S
4 min readApr 16, 2021

In this article, we will be integrating Huawei Remote Configuration Service in Flutter QuizApp. Here we will fetch the remote data which is questions and answers JSON data from Ag-console. Huawei provides Remote Configuration service to manage parameters online, with this service you can control or change the behavior and appearance of you app online without requiring user’s interaction or update to app. By implementing the SDK you can fetch the online parameter values delivered on the AG-console to change the app behavior and appearance.

Introduction

In this article, we will be integrating Huawei Remote Configuration Service in Flutter QuizApp. Here we will fetch the remote data which is questions and answers JSON data from Ag-console. Huawei provides Remote Configuration service to manage parameters online, with this service you can control or change the behavior and appearance of you app online without requiring user’s interaction or update to app. By implementing the SDK you can fetch the online parameter values delivered on the AG-console to change the app behavior and appearance.

Functional features

1. Parameter management: This function enables user to add new parameter, delete, update existing parameter and setting conditional values.

2. Condition management: This function enables user to adding, deleting and modifying conditions, and copy and modify existing conditions. Currently, you can set the following conditions version, country/region, audience, user attribute, user percentage, time and language. You can expect more conditions in the future.

3. Version management: This feature function supports user to manage and rollback up to 90 days of 300 historical versions for parameters and conditions.

4. Permission management: This feature function allows account holder, app administrator, R&D personnel, and administrator and operations personals to access Remote Configuration by default.

Development Overview

You need to install Flutter and Dart plugin in IDE and I assume that you have prior knowledge about the Flutter and Dart.

Hardware Requirements

  • A computer (desktop or laptop) running Windows 10.
  • A Huawei phone (with the USB cable), which is used for debugging.

Software Requirements

  • Java JDK 1.7 or later.
  • Android studio software or Visual Studio or Code installed.
  • HMS Core (APK) 4.X or later.

Integration process

Step 1. Create flutter project

Step 2. Add the App level gradle dependencies.

Choose inside project Android > app > build.gradle.

Add root level gradle dependencies

Add app level gradle dependencies

Step 3: Add the below permissions in Android Manifest file.

Step 4: Add below path in pubspec.yaml file under dependencies.

Step 5 : Create a project in AppGallery Connect

Result

Tricks and Tips

  • Makes sure that agconnect-services.json file added.
  • Make sure dependencies are added build file.
  • Run flutter pug get after adding dependencies.
  • Generating SHA-256 certificate fingerprint in android studio and configure in Ag-connect.

Conclusion

In this article, we have learnt how to integrate Huawei Remote Configuration Service in Flutter QuizApp, Where json data of questions and answers are fetched from remote configurations i.e. Ag-console. Likewise you can configure other parameters like app theme, language, style and country etc. to change the app behaviour and appearance.

Thank you so much for reading, I hope this article helps you to understand the Huawei Remote Configuration Service in flutter.

Reference

Remote configuration service

--

--

No responses yet