1.3.1 • Published 2 years ago

miniprogram-ts-quickstart v1.3.1

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Remote Config quickstart

English | 中文

Table of Contents

Introduction

AppGallery Connect Remote Configuration allows you to change the behavior and appearance of your app online without requiring users to update the app. With the service, you can provide tailored experience for your users in a timely manner.

Preparing the Environments

  • A computer with Weixin DevTools installed

Getting Started

Before running the remote config quickstart, you need to: 1. If you do not have a HUAWEI Developer account, you need to register an account and pass identity verification. 2. Use your account to sign in to AppGallery Connect, create a project and add an app, set app platform to Web. 3. Select your project and app in My projects, and go to Grow > Remote Configuration to enable the Remote Config. 4. Select Project Settings, and go to Manage APIs, enable the Remote Configuration. 5. Select Project Settings, copy the SDK Code Snippet json from AppGallery Connect and paste the json to index.ts in this demo. 6. Select your project and app in My projects, and go to Grow > Remote Configuration, create parameter values 7. Run the following code in terminal in the demo path, and run the demo, then you can fetch parameter values .

``` bash
# install AGC remote config sdk
npm install @agconnect/remoteconfig@1.3.1 --save
```
  1. More details about Remote Config

Sample Code

Sample code: /pages/index/index.ts

Result

remoteconfigDemo

Question or issues

If you have questions about how to use AppGallery Connect Demos, try the following options:

  • Stack Overflow is the best place for any programming questions. Be sure to tag your question with AppGallery.
  • Huawei Developer Forum AppGallery Module is great for general questions, or seeking recommendations and opinions.

If you run into a bug in our samples, please submit an issue to the Repository. Even better you can submit a Pull Request with a fix.

License

remote config quickstart is licensed under the Apache License, version 2.0.