question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Firebase Remote Config setMinimumFetchIntervalInSeconds has no effect

See original GitHub issue

Firebase Remote Config version 19.2.0

I’m trying to use 3600 seconds as minimum fetch interval :

 val settings = FirebaseRemoteConfigSettings.Builder()
                .setMinimumFetchIntervalInSeconds(3600L)
                .build()

FirebaseRemoteConfig.getInstance().setConfigSettingsAsync(settings)
FirebaseRemoteConfig.getInstance().fetch(3600L).addOnCompleteListener { task ->
            if (task.isSuccessful) FirebaseRemoteConfig.getInstance()
}          

when reload app one time and after two hours - remote config not fetched. Only after 12 hours

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
danasilvercommented, Jan 13, 2021

A couple questions that could help solve this issue:

  • Are you waiting for the setConfigSettingsAsync task to complete before calling fetch?
  • Where are you calling activate()? That’s how the newly fetched values would become “active” and get returned when you get the value with getString or another similar method.
0reactions
google-oss-botcommented, Nov 24, 2021

Since there haven’t been any recent updates here, I am going to close this issue.

@shumidub if you’re still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

FirebaseRemoteConfigSettings.Builder - Google
Returns a FirebaseRemoteConfigSettings with the settings provided to this builder. long ... Builder setMinimumFetchIntervalInSeconds(long duration).
Read more >
Why if I change parameter value on Firebase Remote Config ...
setMinimumFetchIntervalInSeconds (long) in my code above, so I assume the minimum fetch interval is determined by the default value of 12 hours.
Read more >
How do you implement your FirebaseRemoteConfig object as ...
You get the one and only instance by FirebaseRemoteConfig.getInstance() , which is stated in method doc by the way. Normally it is configured...
Read more >
FirebaseRemoteConfigSettings - distriqt // Firebase
Sets the connection and read timeouts for fetch requests to the Firebase Remote Config servers in seconds. FirebaseRemoteConfigSettings.
Read more >
Firebase Remote Config - Satyam Gondhale - Medium
Have you ever want to change Behavior & appearance of your app without publishing an app update, at no cost, for unlimited daily...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found