aryaxt
aryaxt

Reputation: 77616

iOS - GameKit get list of matches in progress?

How can I get a list of games (matches). Are the list of matches stored on GameCenter servers, or am I suppose to store them on the device?

Documentation doesn't seem to have any information about this.

Upvotes: 1

Views: 607

Answers (1)

aryaxt
aryaxt

Reputation: 77616

I was looking at GKMatch documentation instead of GKTurnBasedMatch. I think GKMatch deals with live games only, and that's why it doesn't need to store any of the match data.

The following method in GKTurnBasedMatch returns the list of matches:

+ (void)loadMatchesWithCompletionHandler:(void (^)(NSArray *matches, NSError
*error))completionHandle

Upvotes: 3

Related Questions