How to implement fetch() from Firebase Remote Config in onStart() method?
问题 I'm trying to implement calling Firebase Remote Config fetch() method in onStart() . I thought it would be quite easy but after few attempts it isn't. First of all, I want to check for new config values as soon as the user opens the app and cache expiration time was exceeded . That's why I chose onStart() method to do this. At first I used standard approach: //called in Activity onStart() method public static void fetchRemoteConfigValues(Activity activity) { long cacheExpirationInSeconds =