<!--
{
  "availability" : [
    "iOS: 3.0.0 - 7.0.0",
    "iPadOS: 3.0.0 - 7.0.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 3.0.0 - 3.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKVoiceChatClient/voiceChatService(_:didReceiveInvitationFromParticipantID:callID:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(pl)GKVoiceChatClient(im)voiceChatService:didReceiveInvitationFromParticipantID:callID:"
  },
  "title" : "voiceChatService(_:didReceiveInvitationFromParticipantID:callID:)"
}
-->

# voiceChatService(_:didReceiveInvitationFromParticipantID:callID:)

Asks the client to accept or reject an invitation from a remote participant.

```
optional func voiceChatService(_ voiceChatService: GKVoiceChatService, didReceiveInvitationFromParticipantID participantID: String, callID: Int)
```

## Parameters

`voiceChatService`

The service that received the request.

`participantID`

A string that uniquely identifies the other user.

`callID`

An integer that uniquely identifies the request.

## Discussion

If this method is not implemented by the client, the voice chat service automatically accept requests from other participants.

This method should call the service’s [`acceptCallID(_:)`](/documentation/GameKit/GKVoiceChatService/acceptCallID(_:)) method if it wants to accept the request or the [`denyCallID(_:)`](/documentation/GameKit/GKVoiceChatService/denyCallID(_:)) to reject it.

---

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)