title: How to invite players through game centre app in iOS 7?
body: <p>I've already implemented auto-matchmaking, and tested it between two actual devices with different game centre accounts, so I know I've setup that part correctly: I can create a match, and send data between both the players. Now I'm implementing the invitations part.</p>
  
  <p>The <a href="https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/GameKit_Guide/Matchmaking/Matchmaking.html#//apple_ref/doc/uid/TP40008304-CH9-SW42" rel="nofollow noreferrer">Game Center programming guide</a>
  says:</p>
  
  <blockquote>
    <p>The playersToInvite parameter is non-nil when your game is launched
    directly from the Game Center app to host a match. This parameter
    holds an array of player identifiers listing the players to invite
    into the match.</p>
  </blockquote>
  
  <p>What I don't understand, is how to invite players through the game centre app. In the game centre app, I can see my game. When I click on it, in the top right corner there is a button with text: "..." . When I click on it, I see two options: "Play" and "Share". Clicking on "Play" launches my app.</p>
  
  <p><strong>Is there some code I need to implement for the <code>Game center app</code> to present me with the option of selecting friends to invite etc?</strong></p>
  
  <p>EDIT: It appears that the person in this post has almost the same problem as me:
  <a href="https://stackoverflow.com/questions/3962717/definitive-answer-to-what-playerstoinvite-is-for">Definitive answer to what playersToInvite is for</a>
  But no definitive answer so far, on how that data gets populated.</p>