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

前端 未结 10 909
长发绾君心
长发绾君心 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:33

    I work on a big project and the problem was buried in an unexpected place. Long story short: the firebase application id(normally set through google-services.json) was changed through code:

    FirebaseOptions.Builder builder = new FirebaseOptions.Builder();
    builder.setApplicationId(applicationId);
    builder.setApiKey(apiKey);
    FirebaseOptions options = builder.build();
    FirebaseApp.initializeApp(context, options);
    

    The solution was to remove that code and let firebase use the info from "google-services.json".

提交回复
热议问题