8000 GKTurnBasedMatch events not received by Unity · Issue #72 · apple/unityplugins · GitHub
[go: up one dir, main page]

Skip to content

GKTurnBasedMatch events not received by Unity #72

@michaelclockstone

Description

@michaelclockstone

Description
Events such as GKTurnBasedMatch.TurnEventReceived or GKTurnBasedMatch.ExchangeReceived are not received by Unity. Note that GKTurnBasedMatch.TurnEventReceived is received if you request the GKTurnBasedMatchmakerViewController and select the current match in the Apple GameCenter UI.

Steps To Reproduce

  1. In the Unity GameKit_Sample scene start a Turn Based Match by inviting a friend through the "Show Turn Based Matches" button.
  2. Press "TakeTurn" to pass the turn to the second player.
  3. On the second device press "Show Turn Based Matches" and select the new match. In the Log Window note that a "Match Turn Ended" event is correctly received.
  4. On the second device press "TakeTurn" to pass the turn to the first player.
  5. On the first device no event is received for the new turn. Expected result: TurnEventReceived / TurnBasedMatchesPanel.OnMatchTurnEnded should be called
  6. On the first device press "Show Turn Based Matches" and select the current match.
  7. Note that now the TurnEventReceived is received.

Expected behavior
Events should be received by the Unity callbacks.

Remarks
Using GKTurnBasedMatch.LoadMatches() you can successfully receive match data and exchanges as a workaround by polling.

Tested on

  • iPadOS 26.1
  • Unity 6.2.6f2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0