The Amp Devcenter Test Developer Hub

Welcome to the Amp Devcenter Test developer hub. You'll find comprehensive guides and documentation to help you start working with Amp Devcenter Test as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    

Dynamic Configuration

iOS and Android SDKs allow users to configure their apps to use dynamic configuration. This feature will find the best server url automatically based on app users' geo location.

Background

Since there's no way to change the app after it's released out, it could cause data loss if server suddenly is not reachable. This could happen in a few cases, such as server outage, DNS poisoning or certificate issue. Even Amplitude adjusts server url afterwards, the old version apps won't be able to change the url, which will cause data loss for the users until they update the app with updated SDK.

Region Based

Users from different regions might receive different server url to talk to.

Dynamically Adjust

Assuming one server url becomes not reachable for some reason, Amplitude can quickly adjust it in our dynamic config server. By doing so, it makes ingestion endpoint to be dynamic and you don't need to worry about releasing a new version of your app.

Usage

You need to turn useDynamicConfig flag on.

  • Note 1. If you have your own proxy server and use setServerUrl API, please leave this OFF.
  • Note 2. If you have users in China Mainland, we suggest you turn this on.
  • Note 3. By default, this feature is OFF. So you need to explicitly set it to ON to use it.
[Amplitude instance].useDynamicConfig = YES;
AmplitudeClient.getInstance().setUseDynamicConfig(true);

Versions

iOS SDK >= v5.3.0
Android SDK >= v2.28.0

Updated about a year ago


Dynamic Configuration


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.