Remote Config

circle-info

This feature is supported in Android SDK 2.11.0 and above.

Remote Config is a feature that lets you replace values or properties managed in your application with parameter values defined in the Hackle Dashboard, enabling real-time control of application behavior and settings.

Navigate to the Remote Config screen in the Hackle Dashboard to configure parameters and set values according to user identification rules.

remoteConfig

Calling the remoteConfig() method returns a HackleRemoteConfig instance containing the Remote Config information (configured parameters and rule information) for the user.

import io.hackle.android.HackleApp
import io.hackle.sdk.common.HackleRemoteConfig

// 원격 구성 정보 담은 인스턴스를 반환합니다.
val remoteConfig: HackleRemoteConfig = hackleApp.remoteConfig()

Query Remote Config Parameters

Since parameters set on the Hackle Remote Config screen exist as key-value pairs, you can use the methods below to retrieve parameter values according to the configured parameter type.

circle-exclamation

getString

  • Returns a parameter value configured as STRING or JSON type.

  • Returns the default value or the value set by the rule based on the state decision.

getInt

  • Returns a parameter value configured as Number type as an Int.

  • Returns the default value or the value set by the rule based on the state decision.

getDouble

  • Returns a parameter value configured as Number type as a Double.

  • Returns the default value or the value set by the rule based on the state decision.

getLong

  • Returns a parameter value configured as Number type as a Long.

  • Returns the default value or the value set by the rule based on the state decision.

getBoolean

  • Returns a parameter value configured as Boolean type.

  • Returns the default value or the value set by the rule based on the state decision.

Last updated