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

# match(_:shouldReinviteDisconnectedPlayer:)

Determines whether the local player should reinvite another player who disconnected from a two-player match.

```
optional func match(_ match: GKMatch, shouldReinviteDisconnectedPlayer player: GKPlayer) -> Bool
```

## Parameters

`match`

The match that the player disconnected from.

`player`

The player who disconnected from the match.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if GameKit should reinvite the player when they disconnect; <doc://com.apple.documentation/documentation/Swift/false> if GameKit should end the match when the player disconnects.

## Discussion

If the player successfully reconnects to the match, GameKit sends [`match(_:player:didChange:)`](/documentation/GameKit/GKMatchDelegate/match(_:player:didChange:)-8ohgr) to the match’s delegate.

---

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)