game-center

Game Center - Sending and receiving data

偶尔善良 提交于 2019-11-28 07:51:06
EDIT: I have made a clean, new project, but still can't get it working. Please download it, there is a little code to look at and probably easy for a professional or anyone remotely experience to see whats I am doing wrong. Just trying to send that integer. http://www.2shared.com/file/fPOCLlg5/gkTest.html Hi I am trying to implement Game Center multiplayer in my iphone game and having trouble understanding the samples I have at hand in the Apple Docs and from third parties concerning sending and receiving data. Could someone please explain the code samples in the Official Apple docs here

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

徘徊边缘 提交于 2019-11-28 07:06:30
问题 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

iOS Development: How do I auto match players in Game Center?

依然范特西╮ 提交于 2019-11-28 02:04:21
问题 I have a "Play Now" button in my app that allows players to be auto-matched with other random players. Maybe I'm missing this somewhere in the docs, but how do I write the code to auto match players? The Game Center sandbox server has been messed up the last few days, so I'm having a hard time trying different things since I have to guess because the Game Kit docs aren't exactly clear on how to do this. Currently, I have code setup (but untested) to create a match with a friend... NSArray

Gamecenter ios 9 GameCenter GKLocalPlayerListener methods not called

。_饼干妹妹 提交于 2019-11-27 23:17:07
This is about GameCenter . Since "the GKLocalPlayerListener protocol inherits the methods from GKChallengeListener , GKInviteEventListener , and GKTurnBasedEventListener . In order to handle multiple events" and "do not implement GKChallengeListener , GKInviteEventListener , and GKTurnBasedEventListener directly; implement GKLocalPlayerListener instead. You can listen for, and handle multiple events using GKLocalPlayerListener " (these are from apple docs). One would expect that after registering the GKLocalPlayerListener after the GKLocalPlayer.localPlayer() has been authenticated, then all

Game Center not authenticating using Swift

≡放荡痞女 提交于 2019-11-27 22:31:45
I'm trying to authenticate the local player using swift, but every time I get a false value for the .authenticated property. Here is the code I'm using, it is called by the main view controller when the app starts. func authenticateLocalPlayer(){ var localPlayer = GKLocalPlayer() localPlayer.authenticateHandler = {(viewController, error) -> Void in if viewController { self.presentViewController(viewController, animated: true, completion: nil) }else{ println((GKLocalPlayer().authenticated)) } } } It brings up the log in view just fine, but when I enter a test account login, it just returns the

Integrate Gamecenter in cocos2d game

做~自己de王妃 提交于 2019-11-27 20:06:36
问题 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. 回答1: 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

How to authenticate Game Center User from 3rd party node.js server

落花浮王杯 提交于 2019-11-27 18:53:17
问题 I've been trying to get the new iOS Game Center GKPlayer method, generateIdentityVerificationSignatureWithCompletionHandler, working so we can securely rely on the Game Center credentials for authentication. We're using Node.js as the backend server, and I've been trying to verify the signature but to no avail. Here is the code on the server side that I have - if there's anyone who can chime in on what's missing, that'd be appreciated. The question has been answered somewhat here: How to

the game is not recognized by game center

≯℡__Kan透↙ 提交于 2019-11-27 18:04:29
问题 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

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

╄→尐↘猪︶ㄣ 提交于 2019-11-27 15:37:38
问题 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

Locking a UISearchBar to the top of a UITableView like Game Center

强颜欢笑 提交于 2019-11-27 10:28:22
There's this cool feature in the UITableViews in Game Center and the search bars they have at their tops. Unlike apps where the search bar is placed in the table header view (so it counts as a standard table cell), instead, it seems to be bolted to the parent navigation bar above it. So when scrolling the table, the search bar does indeed move, but if you scroll above the boundaries of the table, the search bar never stops touching the navigation bar. Does anyone know how this might have been done? I was wondering if Apple maybe placed both the search bar and the table in a parent scroll view,