---
title: "player(_:didReceive:)"
framework: gamekit
role: symbol
role_heading: Instance Method
path: "gamekit/gkchallengelistener/player(_:didreceive:)"
---

# player(_:didReceive:)

Handles when the local player issues a challenge but the other player doesn’t want to respond immediately.

## Declaration

```swift
optional func player(_ player: GKPlayer, didReceive challenge: GKChallenge)
```

## Parameters

- `player`: The player who receives the challenge.
- `challenge`: The challenge that the player issues to another player.

## See Also

### Responding to a Challenge

- [player(_:wantsToPlay:)](gamekit/gkchallengelistener/player(_:wantstoplay:).md)
