Android Firebase Remote Config initial fetch does not return value
<p>I'm using Firebase Remote Config to fetch data when app first open for the first time. But problem is I cannot fetch data on first start of the app. <code>onComplete()</code> method triggers but returns no value. If I close app and run again it returns value from Remote Config.</p>

<p>Tried to call fetch() in <code>onCreate()</code>, <code>onStart()</code>, <code>onResume()</code>, gave it a second delay with <code>postDelay()</code> still the same, initial fetch is always empty. I know, Remote Config has <code>setDefaults()</code> method to store defaults before it is getting fetched, but setting defaults inside app is not what I want.</p>

<p>It is the way how Remote Config works or am I doing something wrong? The only workaround I found is to add <code>fetch()</code> inside <code>onResume()</code> and call onResume() again inside <code>onCreate()</code>. It results calling onResume() twice. First time by Android system and second time by code.</p>

<p>It there any other way to force Remote Config fetch data on first time run?</p>

<p><strong>UPDATE</strong></p>

<p>Inside <code>onComplete()</code> first I must call <code>firebaseRemoteConfig.activateFetched();</code> before getting new values from it.</p>