RemoteConfig values in editor

185 views
Skip to first unread message

AnotherUnityDev

unread,
Sep 10, 2023, 1:38:50 AM9/10/23
to Firebase Google Group
Hello,

Preamble: When trying to fetch values from remote config, from within Unity editor, I seem to get only default values. 

Details:
Now the way I've setup remote config to serve my different env (dev, stage, prod) is to have an app for each env. So I have, com.company.app.dev, com.company.stage etc. In remote config, I have created conditions so that I have a condition for dev, stage, prod that map to respective apps. Each env has its own json and plist file (since they are separate apps). When making builds to run on device, I have a pre-build phase that copies the appropriate json/plist files to the Assets/StreamingAsset folder and then I do a Firebase.Create with the relevant options from that file.

This seems to work fine on device, but when I try the same with the editor (I change the package name in the project settings to test on different env), the remote config always gives me default values and not the values for the relevant env.

Any ideas what could be going wrong on the editor? I read somewhere that Firebase doesn't support Unity editor fully, but I can't find any documentation which says remote config won't work in editor (at least not conclusively). Is that what's happening here?

Any suggestions as to next steps would be helpful! 

Thanks!

Joe Spiro

unread,
Sep 12, 2023, 4:48:17 PM9/12/23
to Firebase Google Group
As you have mentioned, the Firebase support of Desktop is a beta feature and is intended for development only. While this is useful for basic tests, in order to ensure your tests are as accurate as possible, run them on mobile devices (or simulator).

As of this message, the current behavior of running Firebase Remote Config in the editor is that it will use project defaults (overrides of in-app defaults if they exist or deferring to the in-app defaults if set otherwise). A/B Testing experiments do not work in Remote Config for the Unity Editor as well as any conditions dependent on device or account (such as Analytics user properties or Analytics Audiences).

The same is true for Remote Config conditions targeting particular apps (as mentioned above). They will not receive app specific values in the Unity Editor/Desktop.

AnotherUnityDev

unread,
Sep 14, 2023, 2:14:37 AM9/14/23
to Firebase Google Group
Thanks for clarifying Joe. That info really helps!
Reply all
Reply to author
Forward
0 new messages