Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/98.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios Firebase远程配置需要推送多长时间?_Ios_Swift_Firebase_Firebase Remote Config - Fatal编程技术网

Ios Firebase远程配置需要推送多长时间?

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.

远程配置推送需要多长时间?我有下面的代码,在网络上推送一个新的更新后,它会在至少几分钟内继续打印false和旧值

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连接很快。如果您的互联网连接很快,那么主机问题。