Hi i am trying to call GetUserData for the players connected in the session but i keep getting bad request. It works when i call it without a PlayFabId to get my local player UserData. I have public permission set for the keys i am requesting. Is there something else i am missing?
Example:
var remotePlayers = PlayFabMultiplayerManager.Get().RemotePlayers;
foreach(PlayFabPlayer player in remotePlayers)
{
PlayFabClientAPI.GetUserData(new GetUserDataRequest()
{
PlayFabId = player .EntityKey.Id,
Keys = new List<string>(){ "Data1", "Data2"},
}, result =>
{
Debug.Log("Got user data:");
}, error =>
{
// Here i get BadRequest response
}
});