简体   繁体   English

Firebase远程配置未获取答案

[英]firebase remote config fetch no answer

Is it possible to get Firebase remote config before starting an activity ? 开始活动之前是否可以获取Firebase远程配置?

I'm trying to get Firebase remote config inside a background IntentService before activity is started but onComplete() is never called. 我正在尝试在活动开始之前在后台IntentService中获取Firebase远程配置,但从未调用过onComplete()。

FirebaseRemoteConfig instance stays in status FirebaseRemoteConfigInfo.LAST_FETCH_STATUS_NO_FETCH_YET FirebaseRemoteConfig实例保持状态FirebaseRemoteConfigInfo.LAST_FETCH_STATUS_NO_FETCH_YET

A fetch will take as long as a fetch takes. 提取将花费与提取相同的时间。 You get no guarantee about how long it will take, just like any other request to a server over a network. 您无法保证需要多长时间,就像通过网络对服务器的任何其他请求一样。 Your app should be prepared to work with default values you specify, or make your users wait for the fetch by using a splash screen that only advances when your fetch is done (this is not usually a good idea - better to work with defaults until the first fetch completes). 您的应用应该准备好使用您指定的默认值,或者使用仅在获取完成后才启动的启动屏幕,让用户等待获取(这通常不是一个好主意-最好在使用默认值之前使用首次提取完成)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM