Skip to content

Instantly share code, notes, and snippets.

@maxirosson
Created March 24, 2021 16:03
Show Gist options
  • Save maxirosson/b8624825fbf7c271e86bd01069f6f4a3 to your computer and use it in GitHub Desktop.
Save maxirosson/b8624825fbf7c271e86bd01069f6f4a3 to your computer and use it in GitHub Desktop.
Firebase.remoteConfig.apply {
setConfigSettingsAsync(remoteConfigSettings {
val sharedPreferences: SharedPreferences = PreferenceManager.getDefaultSharedPreferences(applicationContext)
if (BuildConfig.DEBUG || sharedPreferences.getBoolean("remote_config_stale", false)) {
minimumFetchIntervalInSeconds = 0
}
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment