Difference between game center didRequestMatchWithOtherPlayers and didRequestMatchWithRecipients?

What's the difference between these two methods in iOS 8 GKLocalPlayerListener

?

  • GKInviteEventListener player(didRequestMatchWithRecipients:)

    - Called when a local player starts a match with another player from Game Center
  • GKTurnBasedEventListener player(didRequestMatchWithOtherPlayers:)

    - initiates a match from Game Center with the requested players

Both are noted required

, but apparently neither is mentioned in the Apple Game Center Programming Guide.

UPDATE

And what is the greater the difference in the recipient's response header? In the case of programmatic mapping, which of these three handlers are you supposed to implement, and with what exact semantics?

  • GKMatchRequest recipientResponseHandler

+3


source to share


1 answer


I don't think didRequestMatchWithRecipients get called anymore. didAcceptInvite is called on the receiving device when they accept the invitation. The didFindMatch command is called on all devices when the Maker Maker Match Controller is complete. I set breakpoints and logs in the method and started the game the way I can think of, but nothing shows that didRequestMatchWithRecipients is called. To be fair, what's the point of the method: didAcceptInvite lets you get started, and didFindMatch gives you a match object with all the information you need?



0


source







All Articles