Ios Firebase远程配置需要推送多长时间?
远程配置推送需要多长时间?我有下面的代码,在网络上推送一个新的更新后,它会在至少几分钟内继续打印false和旧值Ios Firebase远程配置需要推送多长时间?,ios,swift,firebase,firebase-remote-config,Ios,Swift,Firebase,Firebase Remote Config,远程配置推送需要多长时间?我有下面的代码,在网络上推送一个新的更新后,它会在至少几分钟内继续打印false和旧值 remoteConfig.fetchWithCompletionHandler { (status, error) -> Void in if (status == FIRRemoteConfigFetchStatus.Success) { print("Config fetched.") print(self.remoteConfig.
remoteConfig.fetchWithCompletionHandler { (status, error) -> Void in
if (status == FIRRemoteConfigFetchStatus.Success) {
print("Config fetched.")
print(self.remoteConfig.activateFetched())
print(self.remoteConfig.configValueForKey("my_key").stringValue)
} else {
print("Config not fetched.")
}
}
默认行为是缓存12小时,根据。功能
fetchWithExpirationDuration(expirationDuration: NSTimeInterval, completionHandler: FIRRemoteConfigFetchCompletion?)
指定缓存持续时间。乍一看,我认为持续时间是网络请求的超时-事实上,它是缓存的超时。如果在短时间内使用此选项,则在设置缓存过期时,这些值将以最快的速度重新加载。它将显示最长5秒的新通知。id您的internet连接很快。如果您的互联网连接很快,那么主机问题。