English | 中文
Remote Configuration allows you to manage parameters online. With the service, you can change the behavior and appearance of your app online without requiring users to update the app. Remote Configuration provides cloud-based services, the console, and the client SDK. By integrating the client SDK, your app can periodically obtain parameter values delivered on the console to modify the app's behavior and appearance.
- A computer with Android Studio installed for app development
- A device or an emulator in Android Studio running Android 4.2 or a later version
- Check whether you have a HUAWEI ID. If not, register one and pass identity verification.
- Use your account to sign in to AppGallery Connect, create an app, and set Package type to APK (Android app).
- Enable Remote Configuration.
- Go to Project settings > General information, download the agconnect-services.json file, and copy this file to the app's module directory.
The fetch API is called before app launch and data is used after the fetch operation is successful. src\main\java\com\huawei\agc\quickstart\Test1Activity.java
Data fetched by calling the fetch API is applied upon the next app launch. src\main\java\com\huawei\agc\quickstart\Test2Activity.java
**Click 'FETCH DATA AND APPLY'.
**Click 'FETCH DATA AND APPLY NEXT STARTUP'.
If you have any questions about the sample code, try the following:
- Visit Stack Overflow, submit your questions, and tag them with
appgallery
. Huawei experts will answer your questions. - Go to AppGallery in the HUAWEI Developer Forum and communicate with other developers.
If you encounter any issues when using the sample code, submit your issues or submit a pull request.
The sample code is licensed under the Apache License, version 2.0.