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

前端 未结 10 906
长发绾君心
长发绾君心 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条回答
  •  [愿得一人]
    2020-12-30 19:36

    I've used a similar code like @Ian Barber (copy):

    FirebaseRemoteConfigSettings configSettings = 
        new FirebaseRemoteConfigSettings.Builder()
            .setDeveloperModeEnabled(BuildConfig.DEBUG)
            .build();
    FirebaseRemoteConfig.getInstance().setConfigSettings(configSettings);
    

    My problem was the "BuildConfig.DEBUG", it returns false. So it takes the value 1h in cache until it was fetched again!

提交回复
热议问题