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 Xcode installed for app development
- A device or simulator running iOS 9 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 Platform to iOS.
- Enable Remote Configuration.
- Download the agconnect-services.plist file from AppGallery Connect and copy it to the root directory of the Xcode project.
Fetch the remote configuration after a launch, and apply the configuration upon success. Objective-C code: AGConnectRemoteConfigDemo/AGConnectRemoteConfigDemo/FirstModeViewController.m Swift code: AGConnectRemoteConfigDemo/AGConnectRemoteConfigDemo-Swift/FirstModeViewController.swift
Fetch the remote configuration after a launch, and apply the configuration after the next launch. Objective-C code: AGConnectRemoteConfigDemo/AGConnectRemoteConfigDemo/SecondModeViewController.m Swift code: AGConnectRemoteConfigDemo/AGConnectRemoteConfigDemo-Swift/SecondModeViewController.swift
**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.