Set Test Mode In Code

Hey,

Is it possible to set Test Mode in envronment configuration in code? I would like to set it as part of our build process. Im using 16.3.0.

Cheers.

Hey MaccaDevStrat!

Our service window is currently the only way to interface with that Test Mode value.
We may be able to open that up but first, would you mind elaborating on your goal?

Is having your project linked to your Unity Dashboard project an option in your CI?
If so, pushing the settings file we generate into your remote repo may do the trick~
This file can be found at “\ProjectSettings\Packages\com.unity.services.vivox\Settings.json” after linking a Unity Dashboard project and fetching credentials at least once.
This file caches your credentials and includes whether the Test Mode box is true or false.
If it’s true, it’ll also cache your Vivox secret key.

Generally, are you aiming to have your CI set up to generate client-side tokens?

If that’s the goal, there is another option that’d have a similar effect to checking that Test Mode box.
The documentation for that can be found here!
The note in the middle of that page is important, you’ll need to place your key in the referenced API for this to work.
You do not need this line from the provided example since the aim in this case is client-side token generation: ```
VivoxService.Instance.SetTokenProvider(new VivoxTokenProvider());