unity-game-engineuwpxbox-onexbox-live

Can't sign into Xbox Live test account using sandbox


We are porting our Unity3D game to UWP and we had hit obstacle related to Xbox Live sandbox environment. We had done following things:

After all this steps we are getting following problems:

On Xbox One

When we try to sign into Xbox Live in-game using XboxLiveUser.SignInAsync function (from Microsoft.Xbox.Services.System namespace) we are getting following exception:

System.InvalidOperationException: Arg_InvalidOperationException
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at SharedLibrary!<BaseAddress>+0x4511ee
at SharedLibrary!<BaseAddress>+0x451168
...

On Windows 10 PC

When we try to sign into Xbox Live in-game we are getting popup with error 0x87DD0005 enter image description here


Solution

  • Since you are using Xbox Live Creators Program for your game, then you should add "XboxLiveCreatorsTitle" into your xboxservices.config file like

    {
        "TitleId": 1859112156,
        "PrimaryServiceConfigId": "00000000-0000-0000-0000-00006ecfccdc",
        "XboxLiveCreatorsTitle": true
    }
    

    Refer from Associate your Visual Studio project with your Xbox Live enabled title:

    1. XboxLiveCreatorsTitle must be set to true for titles in the Xbox Live Creators Program as it changes the sign-in method to work for titles in the Xbox Live Creators Program.

    Besides, you may also check you Sandbox and Test accounts. After switching your PC's development sandbox, you can log in to Xbox App with you test account first to see if they are work well.

    And also, before testing, don't forget to publish your Xbox Live service configuration by clicking the Test button on the Xbox Live configuration page.