Hello,
we are using 2021.3.11f. (now 3.16f and still hapening)
when I call “await UnityServices.InitializeAsync()” It works but shows error messages on xcode console
No cloud project ID was found by the Analytics SDK. This means Analytics events will not be sent. Please make sure to link your cloud project in the Unity editor to fix this problem.
To use Unity’s dashboard services, you need to link your Unity project to a project ID. To do this, go to Project Settings to select your organization, select your project and then link a project ID. You also need to make sure your organization has access to the required products. Visit https://dashboard.unity3d.com to sign up. This will throw an exception in future release.
and after that, I call this “await AuthenticationService.Instance.SignInAnonymouslyAsync()” and it returns “Valid ID Domain not specified” error.
Request failed: 400, {“title”:“INVALID_PARAMETERS”,“detail”:“Valid ID Domain not specified”,“details”:[ ],“status”:400}
ProjectId is fine on build logs.
“OnPostprocessBuild().CloudProjectSettings.projectId: 3acf858e----b06b69b44c6d"
"OnPostprocessBuild().Application.cloudProjectId: 3acf858e----b06b69b44c6d”
ProjectId is not fine on runtime.
"Application.cloudProjectId: "
It SignInAnonymouslyAsync() works well on Android(development/release) and iOS(development) builds.
This problem only happens on iOS build(release)
I use RestAPI on iOS instead. it works.
This is full logs from xcode console,
[ServicesCore]: To use Unity’s dashboard services, you need to link your Unity project to a project ID. To do this, go to Project Settings to select your organization, select your project and then link a project ID. You also need to make sure your organization has access to the required products. Visit https://dashboard.unity3d.com to sign up. This will throw an exception in future release.
Unity.Services.Core.Registration.d__35:MoveNext()
System.Runtime.CompilerServices.AsyncTaskMethodBuilder:Start(TStateMachine&)
Unity.Services.Core.Registration.CorePackageInitializer:Initialize(CoreRegistry)
Unity.Services.Core.Internal.<g__InitializePackageAtIndexAsync|0>d:MoveNext()
System.Runtime.CompilerServices.AsyncTaskMethodBuilder:Start(TStateMachine&)
Unity.Services.Core.Internal.<>c__DisplayClass3_0:g__InitializePackageAtIndexAsync|0(Int32)
Unity.Services.Core.Internal.d__3:MoveNext()
System.Runtime.CompilerServices.AsyncTaskMethodBuilder:Start(TStateMachine&)
Unity.Services.Core.Internal.CoreRegistryInitializer:InitializeRegistryAsync()
Unity.Services.Core.Internal.<g__InitializePackagesAsync|1>d:MoveNext()
System.Runtime.CompilerServices.AsyncTaskMethodBuilder:Start(TStateMachine&)
Unity.Services.Core.Internal.<>c__DisplayClass22_0:g__InitializePackagesAsync|1()
Unity.Services.Core.Internal.d__22:MoveNext()
System.Runtime.CompilerServices.AsyncTaskMethodBuilder:Start(TStateMachine&)
Unity.Services.Core.Internal.UnityServicesInternal:InitializeServicesAsync()
Unity.Services.Core.Internal.d__20:MoveNext()
System.Runtime.CompilerServices.AsyncTaskMethodBuilder:Start(TStateMachine&)
Unity.Services.Core.Internal.UnityServicesInternal:InitializeAsync(InitializationOptions)
Unity.Services.Core.d__11:MoveNext()
System.Runtime.CompilerServices.AsyncTaskMethodBuilder:Start(TStateMachine&)
Unity.Services.Core.UnityServices:InitializeAsync(InitializationOptions)
d__89:MoveNext()
System.Runtime.CompilerServices.AsyncTaskMethodBuilder:Start(TStateMachine&)
AppLoader:InitUnityGamingServices(CancellationToken)
[Authentication]: Request failed: 400, {“title”:“INVALID_PARAMETERS”,“detail”:“Valid ID Domain not specified”,“details”:[ ],“status”:400}
Unity.Services.Authentication.AuthenticationServiceInternal:BuildServerException(WebRequestException)
Unity.Services.Authentication.d__101:MoveNext()
System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
System.Runtime.CompilerServices.MoveNextRunner:Run()
System.Threading.Tasks.AwaitTaskContinuation:RunCallback(ContextCallback, Object, Task&)
System.Threading.Tasks.Task:FinishContinuations()
System.Threading.Tasks.Task:TrySetException(Object)
System.Threading.Tasks.Task:FinishContinuations()
System.Threading.Tasks.Task:TrySetException(Object)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder1:SetException(Exception)** **Unity.Services.Authentication.<SendAsync>d__14
1:MoveNext()
System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
System.Runtime.CompilerServices.MoveNextRunner:Run()
System.Threading.Tasks.AwaitTaskContinuation:RunCallback(ContextCallback, Object, Task&)
System.Threading.Tasks.Task:FinishContinuations()
System.Threading.Tasks.Task:TrySetException(Object)
System.Threading.Tasks.TaskCompletionSource1:TrySetException(Exception)** **System.Threading.Tasks.TaskCompletionSource
1:SetException(Exception)
Unity.Services.Authentication.WebRequest:RequestCompleted(TaskCompletionSource1, Int64, Boolean, Boolean, String, String, IDictionary
2)
Unity.Services.Authentication.<>c__DisplayClass15_0:b__0(AsyncOperation)
UnityEngine.AsyncOperation:InvokeCompletionEvent()