I'm having trouble logging in with the LoginWithXbox function. I'm using Unity 2019.4.14f1, I've imported the Unity editor extensions, downloaded the Playfab SDK and added the Playfab Party add-on. I'm able to retrieve the required token but every time I try to login I get the following error:
/Client/LoginWithXbox: Could not determine a title id for this.
I've been testing the API with Postman and have verified that the token I'm sending is valid - I'm able to successfully login from there. After much experimentation I noticed that I get the same error using Postman if I remove the TitleId field from the body of the request.
I'm using the following code to try and log in. Any recommendations on how to successfully log in with this method would be appreciated.
var request = new LoginWithXboxRequest { XboxToken = token, TitleId = "XXXXX", CreateAccount = true }; PlayFabClientAPI.LoginWithXbox(request, OnLoginSuccess, OnLoginFailure);