In the sample app fetch method is called in onCreate()
. Is it really a good place to do this? The application can be used (moves from foreground to background and vice-versa, opens new activities and going back to main activity) for weeks and onCreate()
from the main Activity
won't be called again. I don't think it is good solution where my app won't update my configs for such a long time.
Update:
It is very bad idea to fetch config values only in onCreate()
method, some kind of check should be done in onStart()
. Here is also some useful information: https://firebase.googleblog.com/2017/01/firebase-remote-config-loading.html