<!--
{
  "availability" : [
    "iOS: 5.0.0 - 8.0.0",
    "iPadOS: 5.0.0 - 8.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "macOS: 10.8.0 - 10.10.0",
    "visionOS: 1.0.0 - 1.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKMatchDelegate/match(_:shouldReinvitePlayer:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(pl)GKMatchDelegate(im)match:shouldReinvitePlayer:"
  },
  "title" : "match(_:shouldReinvitePlayer:)"
}
-->

# match(_:shouldReinvitePlayer:)

Handles when a player disconnects from a two-player match.

```
optional func match(_ match: GKMatch, shouldReinvitePlayer playerID: String) -> Bool
```

## Parameters

`match`

The match that lost the player.

`playerID`

The identifier for the player whose connection failed.

## Return Value

Your game should return <doc://com.apple.documentation/documentation/Swift/true> if it wants GameKit to attempt to reconnect the player, <doc://com.apple.documentation/documentation/Swift/false> if it wants to terminate the match.

## Discussion

Occasionally, players may get disconnected from a match. If your game implements this method in the match delegate and the match only contains two players, GameKit calls this method after a player gets disconnected. If your delegate allows GameKit to reconnect to the other player, it reconnects the other player. Your [`match(_:player:didChange:)`](/documentation/GameKit/GKMatchDelegate/match(_:player:didChange:)-4eo7p) method is called when the other player is reconnected.

---

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)