Our SDK system already handles getting data from Firebase Remote Config, so if your app gets data from Firebase Remote Config, remove it and use functions from the SDK side.

Callback when Firebase Remote Config receives data successfully

Set callback

Reference

  com.ikame.android.sdk.IKSdkController#setOnRemoteConfigDataListener
  

Function Definition

  fun setOnRemoteConfigDataListener(callback: IKNewRemoteConfigCallback?)
  

Sample usage

Remove callback

Remove all callbacks related to listening for remote configuration data updates.

Reference

  com.ikame.android.sdk.IKSdkController#removeOnRemoteConfigDataListener
  

Function Definition

  fun removeOnRemoteConfigDataListener()
  

Sample usage

Fetch data from Firebase Remote Config

Get from cache

The SDK fetches and stores Firebase Remote Config data in a HashMap through the IKSdkController getRemoteConfigData() method. This allows developers to access configuration values efficiently by keys, facilitating dynamic control over app settings or features.

Get from remote

In the SDK, Firebase Remote Config data is generally managed and cached by the SDK itself. However, if you prefer not to rely on the cached data and need to fetch the latest configuration directly from Firebase, you can use the IKSdkController getRemoteConfigData() method.

Classes and Interfaces

  • IKRemoteConfigCallback: This interface handles callbacks from Firebase Remote Config fetch operations, providing methods for success and failure notifications.

  • IKRemoteConfigValue: A data class that encapsulates the values retrieved from Firebase Remote Config, offering multiple data type conversions and error handling capabilities.