Skip to content

Commit

Permalink
fetch timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
developwithishfaq committed Nov 21, 2024
1 parent b536a70 commit b198ca4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ object SdkRemoteConfigController {
callback: SdkConfigListener?,
fetchOutTimeInSeconds: Long = 8,
handlerDelayInSeconds: Long = 8,
fetchIntervalInSeconds: Long = 1,
onUpdate: () -> Unit,
) {
try {
Expand All @@ -83,9 +84,7 @@ object SdkRemoteConfigController {
)
val remoteConfigBuilder = FirebaseRemoteConfigSettings.Builder()
remoteConfigBuilder.fetchTimeoutInSeconds = fetchOutTimeInSeconds
if (com.google.firebase.remoteconfig.BuildConfig.DEBUG) {
remoteConfigBuilder.setMinimumFetchIntervalInSeconds(0)
}
remoteConfigBuilder.setMinimumFetchIntervalInSeconds(fetchIntervalInSeconds)
remoteConfig?.setConfigSettingsAsync(
remoteConfigBuilder.build()
)
Expand Down

0 comments on commit b198ca4

Please sign in to comment.