<!--
{
  "availability" : [
    "iOS: 7.0.0 - 8.0.0",
    "iPadOS: 7.0.0 - 8.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "macOS: 10.9.0 - 10.10.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 2.0.0 - 2.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKInviteEventListener/player(_:didRequestMatchWithPlayers:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(pl)GKInviteEventListener(im)player:didRequestMatchWithPlayers:"
  },
  "title" : "player(_:didRequestMatchWithPlayers:)"
}
-->

# player(_:didRequestMatchWithPlayers:)

Handles the event when the local player sends other players an invitation to join a match.

```
optional func player(_ player: GKPlayer, didRequestMatchWithPlayers playerIDsToInvite: [String])
```

## Parameters

`player`

The local player who sends the invitation.

`playerIDsToInvite`

The identifiers for the players who receive invitations to join the match.

## Discussion

When you call this method, GameKit launches the game and starts the matchmaking process.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)