game-center

iOS 6 Game Center authenticateHandler can't login after a cancel

梦想与她 提交于 2019-11-29 01:05:42
When using the authenticateHandler in iOS 6, game center won't present the login view if the user cancels it. I realize game center will auto lockout an app after 3 cancel attempts, but I'm talking about just 2 attempts. If they cancel the login, they have to leave the app and come back before game center will present the login even through the authenticateHandler is getting set again. Any ideas on how to handle this case in iOS 6? It works fine when using the older authenticateWithCompletionHandler method: #if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_6_0 GKLocalPlayer.localPlayer

Game Center URL scheme

不想你离开。 提交于 2019-11-28 22:35:33
问题 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? 回答1: 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

Setting up third-party server to interact with Game Center

前提是你 提交于 2019-11-28 21:28:36
I'm thinking of adding a feature to my iOS game to allow players to create their own game levels, share them with other players, rate them, etc. There'd be a public repository of user-created levels, sortable by creation date, rating, difficulty, or other criteria. This kind of functionality would necessitate a third-party server. I was thinking I'd create a RESTful API using Sinatra and run it on Heroku. My question is: what would be the best way to authenticate requests to this API? I would prefer not to require players to create a username and password. I'd like to just use Game Center's ID

endTurnWithNextParticipants doesn't trigger receivedTurnEventForMatch after update to iOS 8.3 and swift 1.2

房东的猫 提交于 2019-11-28 18:58:40
Has anyone noticed any changes to turn based match notifications since updating to iOS8.3? In my app when I call endTurnWithNextParticipants, prior to the upgrade, this was resulting in a notification being sent to the opponent which would trigger a receivedTurnEventForMatch being invoked on their device but this no longer is the case. When the opponent terminates the app and restarts it they can see it is their turn so the match in game centre was correctly updated with the order of participation but this doesn't seem to take effect dynamically any more. Anybody else see this? I'm hoping it's

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

这一生的挚爱 提交于 2019-11-28 17:26:47
问题 This question already has answers here : Unable to sign in Sandbox gamecenter on iOS 7 (4 answers) Closed 5 years ago . 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

Integrate Gamecenter in cocos2d game

丶灬走出姿态 提交于 2019-11-28 17:20:13
Is there any one who knows how to integrate game center in Cocos2d. Please tell me steps so i can integrate that in my Game. UPDATE: I created my own Helper Class that works with all kind of Apps (also Cocos2D 1 & 2+) https://github.com/alexblunck/ABGameKitHelper Hi I suggest you use GKHelper Class from Steffen Itterheim! I uploaded the GKHelper.h / GKHelper.m for you: http://www.cl.ly/7ReW Then follow these instructions: //0.0 Add GameKit Framework to Project (Ask If you don't know how to do this ;) ) //0. Change "[window addSubview: viewController.view];" in the AppDelegate.m to: //Do this

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

醉酒当歌 提交于 2019-11-28 13:05:52
问题 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

Game Center login dialog not shown again after cancelling it for the first time (iOS7)

北慕城南 提交于 2019-11-28 09:19:22
I have a problem with logging a user to the Game Center. I first present the login dialog right after the application finishes loading. If the user cancels the dialog, I want to give him the option to change his mind by providing a login button in my main menu. However, on iPads with iOS7, the button doesn't do anything - the Game Center dialog doesn't get shown (it works correctly on iOS6). Instead, I immediately get the error "The requested operation has been cancelled or disabled by the user." Same code is called on application launch and on the button tap. It uses the

Unable to sign in Sandbox gamecenter on iOS 7

前提是你 提交于 2019-11-28 08:54:20
Since iOS 7 I no longer get the prompt from game center to ask me to log in sandbox mode when I open my application. I searched for a while and never saw any known issues about this and there are no patch notes that says anything about sandbox mode changing. Has anyone encountered this problem? If you've cancelled game center sign in enough times, the OS disables game center for that game. Prior to iOS7, you could manually sign in again using the game center app, and when you launch your game again it would sign in. However, in iOS7, it appears that when the OS disables game center for your

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

人盡茶涼 提交于 2019-11-28 08:39:14
问题 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