From 15.1.180001-pre.2, when calling Intialize on VivoxService.Instance:
"[Vivox]: Something is wrong: either a project is not linked, or Authentication was not signed into before calling VivoxService.Instance.Initialize(). Please ensure that a project is properly linked at “Edit > Project Settings > Services > Vivox”
I have my project properly linked, and the application and vivox appears to continue working properly. There seems to be some bad logic that is throwing up that error, as it doesn’t seem to actually be an error.
I am sorry to hear you are experiencing weird behavior with Vivox! To help me best analyze this issue, would you be able to provide the following;
- A snippet of your authentication code
- Your Vivox Initialization code
- Your Vivox Version
- Your Unity Version
- Your Development Platform Type (Mac, Windows, etc)
Thanks for your cooperation!
My authentication code isn’t relevant, this is before any authentication.
Initialization code:
async void Start()
{
await UnityServices.InitializeAsync();
VivoxService.Instance.Initialize();
}
Vivox version was already given above: 15.1.180001-pre.2
Unity version: 2021.3.5f1
Platform: Windows
I’ve looked at the internal code for VivoxServiceInternal.cs and it seems like IsEnvironmentCustom is not set up correctly at the time of initialization. Everything else works fine except for this one Debug.LogError that doesn’t impede any other functions.
I apologize for the delay in our response! Would you be able to try unlinking and relinking your project from services and see if that resolves the issue?
To unlink the project:
- Go to project settings → services
- Click the unlink button.
After you have unlinked the project, you should be able to relink the project from the same menu:
- Select “Use an existing Unity Project”
- Select your organization and the name of the project you used previously.
- Click Link Project
The try initializing again and let me know if you are still seeing this issue. Thanks for your cooperation!