0
votes

I am working with Firebase Remote Config. I have read the docs but I am confused about fetch() method in docs that is written

Remote Config caches values locally after the first successful fetch. By default the cache expires after 12 hours, but you can change the cache expiration for a specific fetch by passing the desired cache expiration to the fetch method.

I want to know if I update value from console does it automatically update my local value on the device or do I have to call fetch() method to update local values I am confused about this will I get updated values by calling FirebaseRemoteConfig.getInstance().get() if I never call fetch(). method after 12 hours does it update automatically?

1

1 Answers

4
votes

You will have to call fetch in your app to get the latest values from the server. Without a call to fetch your app will continue to use the values it got the last time.

The documentation bit you quoted is trying to explain that the values will be retrieved at most every 12 hours, even when your apps call fetch more frequently than that.