game-center

iOS 7: How to setup invitation handler for Game Center matchmaker

自作多情 提交于 2019-11-30 09:07:14
问题 What is the proper way to handle invitations from other players in iOS 7? After my view did load on my root View Controller, I'm calling a game center authentication method, after that I'm setup a invitation handler like so: [[GKLocalPlayer localPlayer] registerListener:self]; My view controller adopt GKLocalPlayerListener and GKInviteEventListener protocols, by the way, what is the best place to register a listener AppDelegate? Maybe or maybe my custom Game Center singleton? I add a method

authenticateWithCompletionHandler: is deprecated: first deprecated in iOS 6.0

让人想犯罪 __ 提交于 2019-11-30 04:02:22
问题 I am working on game which is using Game Center and I get next warning; ... 'authenticateWithCompletionHandler:' is deprecated: first deprecated in iOS 6.0 Ok, I searched and found out that there is new code for authenticate Local User so I replaced old code: - (void)authenticateLocalUser { if (!gameCenterAvailable) return; NSLog(@"Authenticating local user..."); if ([GKLocalPlayer localPlayer].authenticated == NO) { [[GKLocalPlayer localPlayer] authenticateWithCompletionHandler:nil]; } else

Game Center URL scheme

故事扮演 提交于 2019-11-30 01:47:19
It's possible to open the Game Center app from your own app using: [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"gamecenter:"]]; Is there a way to open it on the page for a specific game? I've tried many different combinations. Judging by iBook's lack of such a feature, the lack of documentation and as I'm sure you've found—the lack of info on the internet—I'm going to say that someone'd probably have to either brute force the URL to figure it out (if it's set up to go to individual apps by URL at all). Here are some I've tried: [[UIApplication sharedApplication] openURL:

Reenabling GameCenter after user-cancelled 3 times (iOS7 only) [duplicate]

陌路散爱 提交于 2019-11-29 21:20:02
This question already has an answer here: Unable to sign in Sandbox gamecenter on iOS 7 4 answers If the user dismisses the GameCenter login from your app 3 times, they're never prompted again. The authentication handler returns this: The requested operation has been cancelled or disabled by the user. In previous versions of iOS (6 and below), the user could go to the GameCenter app, login, and all would be good from that point on - they could return to your app and login as normal. In iOS7 (as far as I can tell), canceling 3 times permanently disables GameCenter for your app on that device.

Xcode Mass Multiplayer (Not What You're Probably Thinking)

為{幸葍}努か 提交于 2019-11-29 18:29:01
Okay so I would like to make a game, I'm trying not to divulge what it is but it requires anyone of a certain level in the game who is currently playing to be able to see each other in a sort of MMO style but not really. For example: Suppose I have players Bob, Mary, and Rob. Suppose that Bob is level 4, Mary is level 6 and Rob is also level 4. These would be shown in leaderboards by the way. What I would like is for Bob and Rob and anyone else who is level 4 AND CURRENTLY PLAYING to see each other in a sprite kit seen. I would like Mary to be off with other level 6's. I have little idea of

Game Center Invitations Not Displayed

那年仲夏 提交于 2019-11-29 15:25:36
问题 I have been developing a game which allows for multiplayer matches. I had previous tested the multiplayer invitations and they had all worked. Sending a request from one device displayed a banner on the other and if the invite was accepted the game started. Just before submitting the app, two nights ago, I tested this functionality again only to find that it has stopped working. - (void)authenticateLocalUser:(UIViewController *)viewController :(id<GCHelperDelegate>)theDelegate { delegate =

Create a sandbox account on Game Center on iphone

南笙酒味 提交于 2019-11-29 14:52:02
问题 I have been searching for a few days now an cannot find a thing. I have an ipod touch 4g and have just started adding Game Center to a game i'm working on. This works fine in the simulator, but when i try to test on my device (running the app in debug mode), the game isn't recognised by Game Center. I've seen on other forums that i should be in sandbox mode, but i cant seem to enter it on my device. Please could someone tell me how to enter SB mode Thanks 回答1: From the iOS Provisioning Portal

Is it possible to have a Game Center “LowestScore” Leaderboard?

一笑奈何 提交于 2019-11-29 14:32:16
I've read that Game Center Leaderboard scores are only updated when the newly posted score is greater than the already existing score. This made me wonder if it is possible at all to have a Game Center Leaderboard that stores scores counting down, for example "time to complete level". Can this still be achieved with the correct setup of the Leaderboard, for example with sorting and formatting modifiers? And just to confirm, is it really not possible to have a Game Center Leaderboard simply accept the value that you send to it, regardless of whether it is greater or smaller? You can choose low

iOS9 “This game is not recognized by game center.”

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-29 13:12:34
I am having trouble getting game center to work with my app. Whenever I try to authenticate the user it comes back with the following error: "The requested operation could not be completed because this application is not recognized by Game Center." Most of my internet searches have yielded the response "Make sure that Sandbox is enabled" but with the new iOS 9 there is no sandbox anymore. I also have made sure that my Bundle ID and all of my certificates are correct so I don't think that is the problem. Thanks in advance! Michael Adding a leaderboard fixed the problem even though I wasn't

the game is not recognized by game center

不问归期 提交于 2019-11-29 03:45:48
Hi I am trying to add game center to my iphone app. I have done the following steps 1) I have added an app to my itnuesAccount 2) I assigned the Bundle ID as net.myCompany.myGameCenter 3) I am using the same "net.myCompany.myGameCenter" as Bundle identifier in my info.plist 4) using the sample code provided by apple i added the authentication steps. self.currentLeaderBoard= kEasyLeaderboardID; self.currentScore= 0; [super viewDidLoad]; if([GameCenterManager isGameCenterAvailable]) { self.gameCenterManager= [[[GameCenterManager alloc] init] autorelease]; [self.gameCenterManager setDelegate: