Home > database >  I am trying to fetch value from Firebase Remoteconfig but values are not fetching and only getting d
I am trying to fetch value from Firebase Remoteconfig but values are not fetching and only getting d

Time:09-30

Below is my code,Even I am getting false value for task.result .Anybody please can help me?

   val mFirebaseRemoteConfig = FirebaseRemoteConfig.getInstance()
    val configSettings = FirebaseRemoteConfigSettings.Builder()
        .setMinimumFetchIntervalInSeconds(3600)
        .setFetchTimeoutInSeconds(60)
        .build()
    mFirebaseRemoteConfig.setConfigSettingsAsync(configSettings)

    //---defult value
    mFirebaseRemoteConfig.setDefaultsAsync(R.xml.remote_config_defaults)


    

CodePudding user response:

Can you provide more details?

If you are an Android developer and using Android Studio, you can integrate with Firebase RC easily with a few clicks.

To investigate the problem, you should check:

  1. whether your RC is setting correctly
  2. If you keeps getting the default values, it might be the app's signals don't match the condition you set in the RC template.
  • Related