When I try to create a new match with a specified player I want to invite(who is not my friend) then game center shows me that the invited player is not valid.
Here is the example:
gn.request(“createMatch”,
{
minPlayers = 2,
maxPlaeyrs = 2,
playerIDs = {playerIDToRematch},
listener = rematchDataListener
}
)
And after that in the rematchDataListener I get message
{“type”:“createMatch”,“name”:“gameNetwork”,“provider”:“gamecenter”,“errorCode”:8,“data”:[],“errorMessage”:“Operation can not be done because the player is invalid.”}
I can assure you that the local player is authenticated, playerIDToRematch is not a random string but a real player in sandbox game center.
iOs 8.1.3, iPhone 6, iPad Air.
And then I got that player as a friend then everything works the way it should.
Thanks, George.