-
Notifications
You must be signed in to change notification settings - Fork 671
Description
What feature would you like to see?
I've noticed that FirebaseRemoteConfigSettings.Builder has a function (setFetchTimeoutInSeconds) of a timeout to set for getting the data of RemoteConfig, but it's only for network.
This means that it's quite useless, because sometimes it takes a very long time, no matter what I put there, as if it's ignored.
To me it's also quite weird that it can take a long time despite network timeout, because what else could take so much time after that... Storage can't be this slow...
Anyway, this also means that despite the fact we are supposed to have a timeout solution, we actually don't, and we need to use our own that will ignore the values from there, and also avoid activating the data if the timeout was reached (because we started using older/default data instead).
So, what I want it true timeout setting for remote-config. A value that when reached, it will reach the callback so that I could start using what we had so far from RemoteConfig, whether it's old values or default values. On the next session let it use what was saved before if it reached it.
Describe the feature you would like to add, ideally proposing a specific API.
Something like this:
val configSettings = remoteConfigSettings {
setTotalTimeoutInSeconds(2L)
}
How would you use it?
This way, I could reliably use this SDK and prevent waiting for it for too long, preventing possible bugs related to timing of things.