Android - 应用更新时的 Firebase 远程配置缓存

Android - Firebase remote config cache on app update

当我更新我的应用程序版本时,firebase 远程配置缓存会重置并获取新值还是使用现有缓存,直到缓存在设定时间过期

不会。
它会在缓存超时后获取新值,并且即使在 App 更新后缓存也会保留。

不过,您可以调用 fetch(Long) 并设置超时时间(以秒为单位),该超时时间明显小于默认值,但 according to the Google Blog, this might be risky

如果您编写了一些代码来确定这是更新后第一个应用启动,但 while you can reduce this cache time somewhat, if you start making network calls too frequently, your app might start getting throttled, either by the client, or the Remote Config service. (来自博客 post 链接以上)