Firebase Remote Config setMinimumFetchIntervalInSeconds has no effect
See original GitHub issueFirebase 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:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
A couple questions that could help solve this issue:
setConfigSettingsAsync
task to complete before callingfetch
?activate()
? That’s how the newly fetched values would become “active” and get returned when youget
the value withgetString
or another similar method.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.