Questions tagged [gkturnbasedmatch]

The GKTurnBasedMatch class allows your game to implement turn-based matches between sets of players on Game Center. A turn-based match uses a store-and-forward approach to share data between the participants.

The GKTurnBasedMatch class allows your game to implement turn-based matches between sets of players on Game Center. A turn-based match uses a store-and-forward approach to share data between the participants.

When a player participating in the match performs actions that advance the state of the match, your game describes the new state of the match and decides which player acts next. The next player to act is notified by a push notification.

Later, when the next player launches your game, you download the match data from Game Center and continue the match. Players take turns acting (based on whatever internal logic your game implements) until the match ends.

One advantage of turn-based matches is that a player may participate in multiple matches simultaneously.

104 questions
2
votes
1 answer

GKTurnBasedMatch after creating/joining a match prints 2nd player status as matching?

By using GKTurnbaseMatch default matchmaking scenario, I'm able to connect to a match. I can also create a new match both programmatically and using default view controller. I can also find out list of matches created the local user in the Game…
Asim Khan
  • 508
  • 1
  • 7
  • 21
2
votes
2 answers

iOS turn based match, push notifications not working, GKTurnBasedEventListener functions not called

In my iOS turn based match, I'm trying to receive notifications and to get the public func player(_ player: GKPlayer, receivedTurnEventFor match: GKTurnBasedMatch, didBecomeActive: Bool) to be called, with no success. I register my view model to…
Apostolos
  • 409
  • 3
  • 13
2
votes
1 answer

Turn-based matchmaking not working in iOS 10

My game was working fine before iOS 10. Now, everyone with iOS 10 can't invite and play with who they want. When a user says they want to play multiplayer, I create a GKMatchRequest like this: GKMatchRequest *request = [[GKMatchRequest alloc]…
dontangg
  • 4,729
  • 1
  • 26
  • 38
2
votes
2 answers

How to detect when Game Center turn based match has ended in iOS9?

I'm totally lost with how to implement a turn-based game. I've been trying to use the GKLocalPlayerListener methods to handle turn-based in iOS9. The only method that ever fires is receivedTurnEventForMatch, which leaves me with no method that I…
codeflow
  • 25
  • 3
2
votes
1 answer

Not getting notifications for unpublished gamecenter app

I have a turn based GameCenter game but do not receive push notifications when the other player has done their turn. Am I supposed to or will they only appear once the game is published?
Hamzah Malik
  • 2,540
  • 3
  • 28
  • 46
2
votes
1 answer

GameKit Error says player not authenticated but .authenticated property = true

I have an turn-based game using GameKit in iOS. Generally, my authentication with Game Center works. My game works and I can for periods of time send moves back and forth. However, relatively frequently but not constantly, when I try to perform an…
cdub
  • 180
  • 1
  • 12
2
votes
1 answer

GameKit Turn-based listener is not reliably called when matchData changes

I am using Game Center turn-based matches for my card game. It feels like a good fit because people want to check their email or write a text sometimes between turns. Some users have said that they do really want to be able to have a very…
dontangg
  • 4,729
  • 1
  • 26
  • 38
2
votes
1 answer

Proper GKTurnBasedMatch End Of Match When participantQuitOutOfTurnWithOutcome

In my turn based match, I am unable to cleanly end the match when an out of turn player quits the match. I believe this is preventing me from starting a rematch. Here is what I have observed. When I examine the completed game status of this game…
JeffB6688
  • 3,782
  • 5
  • 38
  • 58
2
votes
1 answer

Game Center - turn based game issue

I'm developing a turn based game for iOS with a custom interface and i discovered a very odd problem with my matchmaking interface. The following code is used to display a list of active matches, i authenticate the user, then get the list of matches…
Macaret
  • 797
  • 9
  • 33
2
votes
2 answers

How to end a 2 player turn based Game Center match when player quit out of trun

I have searched about everywhere and not found an anwer for this problem: I have a 2 player game, turn based, via Game Center. After a player has done his move, he has the ability in Game Center to quit the game. In my case, this automatically means…
2
votes
2 answers

How to find filled seats in iOS Gamecenter match.participants?

I'm writing a turn based iOS game using gamecenter and am having issues finding everyone currently seated in a partially filled game. How should I walk through my match's participants array and pull out the seated players? There will be between…
Logan Shire
  • 5,013
  • 4
  • 29
  • 37
2
votes
0 answers

GKTurnBasedMatch handleMatchEnded: not called

I'm programming a simple 2 players board game with GameKit and the GKTurnBased API, my problem is at the end of my game, when I want to detect that a player won and another lost. First at all, the handleTurnEventForMatch:didBecomeActive: method…
Cyril
  • 1,649
  • 1
  • 17
  • 32
1
vote
1 answer

Retrieve GKTurnBasedMatch objects from GKTurnBasedMatchMakerViewController - Swift 4

I am trying to implement a turn-based multiplayer game (2-player strategy board game). I have managed to authenticate the local player and present the GKTurnBasedMatchmakerViewController (the standard interface). I am a bit puzzled by how to…
SanMu
  • 645
  • 1
  • 6
  • 19
1
vote
0 answers

GKTurnBasedMatch - player( receivedExchangeReplies ) not triggered for CurrentParticipant

so Ive been at this for weeks now and never found an answer anywhere in the net. The sourcecode comments, various documentations and various sources claim the function ReceivedExchangeReplies(GKPlayer, GKTurnBasedExchangeReply[],…
Skeltek
  • 11
  • 2
1
vote
1 answer

GKTurnBasedMatch doesn't consistently advance to the next player (Xamarin, Apple GameKit)

I'm using a turn-based match for a board game, and when a turn is complete I call GKTurnBasedMatch.EndTurn and pass the match participants and the new match data as the arguments. I need the game to advance to the unmatched players, but it only does…
rastafun36
  • 21
  • 3