New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remote Config fetchAndActivate does not honour minimumFetchInterval in RemoteConfigSettings #4740
Comments
This comment has been minimized.
This comment has been minimized.
After some digging around I found out that setting the Not sure if this is considered as a bug or by design? If it is by design maybe update the documentation? |
Thanks for reporting. It makes sense for configSettings to return a completion handler. Internal bug b/148652144 tracking this. |
As a workaround you can call fetchwithexpirationduration: to explicitly set the minimumfetchinterval for just that fetch call. |
@dmandar: fetchwithexpirationduration too has the same behavior. |
Am also experiencing the same behavior, Only the first time the remote config is fetched from the server. Even on setting minimumFetchInterval as zero, the remote config is not fetched again from remote. It is fetched from cache only. Can this be fixed on priority. |
We have a fix going into Firebase 6.25.0. I wasn't able to reproduce the issue with the |
I can confirm that the issue reproduced in Firebase 6.21.0 and has been resolved in Firebase 6.25.0 |
This issue is still happening for us with Firebase |
[REQUIRED] Step 1: Describe your environment
Carthage
[REQUIRED] Step 2: Describe the problem
Steps to reproduce:
On app launch, set
minimumFetchInterval
to 10 sec,Call
fetchAndActivate
with a completion handler.The first time it will always fetch from the server.
Then wait for a couple of min and re launch the app
You can see from the log
[Firebase/RemoteConfig][I-RCN000067] Successfully set configSettings. Developer Mode: false, Minimum Fetch Interval:10.000000, Fetch timeout:60.000000
[Firebase/RemoteConfig][I-RCN000051] Returning cached data.
[Firebase/RemoteConfig][I-RCN000069] Most recently fetched config is already activated.
It does not make a call to the backend to retrieve the latest Config.
The
minimumFetchInterval
is not taking effect.Relevant Code:
The text was updated successfully, but these errors were encountered: