Firebase Remote Config: Can't read any values, but fetch is successful

前端 未结 10 911
长发绾君心
长发绾君心 2020-12-30 19:10

I\'m trying to have a remote config parameter using the new Remote Config feature of Firebase, and I\'m having an issue.

Here\'s my Remote Config console:

I

10条回答
  •  -上瘾入骨i
    2020-12-30 19:40

    Found the problem.

    After adding some logging, I found that the fetch job's onComplete() was never being called. I moved the fetch from my Application's onCreate to a fragment's, and now it works properly!

    (Ian Barber, this might be something to look into or clarify, as the logs indicated that Firebase was initialized without an issue when it was in the Application, and the fetches were silent failures.)

提交回复
热议问题