issueChallenge(toPlayers:message:)
Issues a score challenge to a set of players.
Declaration
func issueChallenge(toPlayers playerIDs: [String]?, message: String?)Parameters
- playerIDs:
The identifiers for the players to challenge. Because Game Center limits the number of players in a challenge request to 10, the maximum size of this array is 10.
- message:
A text message to display to the players.
Discussion
Set up your game to issue a challenge request only in direct response to a player action. That is, your game provides a user interface that allows the player to choose to issue a challenge and choose which friends receive the challenge, and only issue a challenge when the player wishes to do so.