Questions tagged [gkmatchmaker]

Class used in GameKit.framework(Game centre programming in iOS6).

The GKMatchmaker class is used to programmatically create matches to other players and to receive match invitations sent by other players.

Complete Class Reference.

52 questions
1
vote
2 answers

Game Center Matchmaking Custom Invites

I'm sure theres a 'simple' answer to this, but I've been having a difficult time finding it. I've created an iOS card game that works in game center. At the moment, it determines the online players automatically and works fine. What I want to do is…
Dan_Druff
  • 11
  • 4
1
vote
1 answer

Auto MatchMaking with GKGameSession

I'd like to switch to GKGameSession (instead of the legacy GameCenter), but my app does a lot of auto-matchmaking. How do I do that with Sessions? Is it possible to create a game using the traditional MatchMaker View Controller, but then pass…
1
vote
0 answers

How can I check if Game Center's "Nearby Players" setting is turned on?

I'm using GameKit's GKMatchMaker to look for nearby players with startBrowsingForNearbyPlayers(). I got stuck for a while because I didn't know that the "Nearby Players" toggle in the Game Center pane in Settings was turned off. The phone could see…
Robert
  • 6,660
  • 5
  • 39
  • 62
1
vote
1 answer

For how long are Game Center matches (GKMatch) available?

In iOS 10, the Game Center app is gone, so I'm assuming that it would be a good idea to offer the possibility of deleting matches directly from the app, but does Game Center do some housekeeping on its own? If users don't delete a match manually,…
coopersita
  • 5,011
  • 3
  • 27
  • 48
1
vote
1 answer

Warning: Attempt to present view controller on another view controller whose view is not in the window hierarchy

I have a working simple single player game, where the initial view controller has a button to start the game. This button performs a segue and all game logic in the GameViewController is working as expected. I've followed this tutorial to add multi…
1
vote
1 answer

(GKMatch GKVoiceChat) - both Players get disconnected after didFindMatch is called

I'm trying to achieve VoiceChat among two connected players using GKMatch object. My players are authenticated and I'm also able to create a match using GKMatchmakerViewController. The issue is when I receive a GKMatch object via delegate callback…
Sabir Ali
  • 475
  • 2
  • 16
1
vote
0 answers

Programmatic GKMatchmaker Not Finding Other Players

I've been struggling for awhile trying to implement my own GKMatchmaker interface (no GKMatchmakerViewController). I have a separate GameKitHelper class as written in the Ray Wenderlich tutorial that implements the GKMatchDelegate and…
Tim Cron
  • 51
  • 3
1
vote
1 answer

How to dismiss GKMatchmakerViewController if already being presented and present new instance when receiving invitation?

The following delegate method is called by gameKit, when a person accepts an invitation -(void)player:(GKPlayer *)player didAcceptInvite:(GKInvite *)invite { NSLog(@"%@ accepted invite",player.playerID); RIYGameNavigationController *root =…
Rahul Iyer
  • 19,924
  • 21
  • 96
  • 190
1
vote
1 answer

GKMatch delegate function didStateChange calling Two times or delayed call

I am working on a multiplayer game and my match is started successfully. I have 3 players in my case. Player1, Player2, Player3. from Player3, I call disconnect method of GKMatch object and my disconnect method is -(void)disocnnectOnlineMatch { …
GNChishti
  • 39
  • 10
1
vote
0 answers

Network game: how to handle turn game (like ruzzle management)

I am wondering how to handle matches like do ruzzle in ios: I have read Game Kit Programming Guide and seems not what i am searching for. in ruzzle one player can play the game and the other can play it too, while all two player haven't finished, i…
sefiroths
  • 1,555
  • 3
  • 14
  • 29
1
vote
0 answers

Game center, how to handle invites

I am working on a multiplayer game. For listing, ending and creating matches I do NOT use GKTurnBasedMatchmakerViewController. So I have custom view controller to show all the matches. My problem is, I can not handle match invites. I need it for…
Mert
  • 6,025
  • 3
  • 21
  • 33
1
vote
1 answer

Matching ranked or similar opponent

Is it possible in iOS Game Center to match an opponent with similar skills or ranking? I want to match an opponent with some ranged value such as experience or total score. I'm new with iOS matchmaking system. Thanks for any advice. I did some…
Yunus Eren Güzel
  • 3,018
  • 11
  • 36
  • 63
1
vote
2 answers

Where is the auto-matched playerID stored before the connection is made?

I have implemented a custom matchmaker as a direct drop-in replacement to GKMatchmakerViewController, shown only when running in iOS6+. It is working perfectly, but there is one part of the UI in GKMatchmakerViewController that I can't seem to…
Bob Koon
  • 13
  • 4
1
vote
1 answer

iOS Gamecenter Programmatic Matchmaking

I'm trying to implement a real-time multiplayer game with a custom UI (no GKMatchMakerViewController). I'm using startBrowsingForNearbyPlayersWithReachableHandler: ^(NSString *playerID, BOOL reachable) to find a local player, and then initiating a…
Connor
  • 21
  • 5
1
vote
1 answer

Gamecenter Matchmaking Doesn't Work

Here is my Menu.m's onEnter method: GKMatchRequest *request = [[[GKMatchRequest alloc] init] autorelease]; request.minPlayers = 2; request.maxPlayers = 2; GKMatchmakerViewController *mmvc = [[[GKMatchmakerViewController alloc]…
bseh
  • 447
  • 7
  • 13