game-center

IOS Game Center GKLocalPlayerListener

喜你入骨 提交于 2019-12-04 10:41:50
问题 I was trying to implement an event listener in a turn based game so a player can receive when his turn is active or when he is invited by a friend. GKTurnBasedEventHandler is deprecated in IOS 7 and i read in the documentation that i should use GKLocalPlayerListener; but that's the extend of it. Is there someone who used it already, because there is no info anywhere. This is what i tried before, and it does not work. - (BOOL)application:(UIApplication *)application

iOS Game Center Sandbox: Leaderboards show “No score”

核能气质少年 提交于 2019-12-04 09:43:31
So I am sending scores to the GC leaderboards, I receive no errors and the scores apprently send but I still see no scores listed in the leaderboards! The leaderboard itself is listed in Game Center there are just no scores. According to a Google search and a question on here this could be resolved by attempting to log scores with more than one account. I have tried on three different accounts now both in Simulator (iOS5) and on my iPhone; none of them show any errors when submitting the scores. The code that sends the score is here: - (void)reportScore:(NSString *)identifier score:(int

Can Game Center integrate with non-game iOS application

旧街凉风 提交于 2019-12-04 09:08:59
I am working on an education application but I want to implement a leader board and achievement feature to it. So I come up with Game Center. My question is, this application is now in the education category and I don't want to move it to Game category. Will it be rejected in the application review because I integrate Game Center with a non-game application? If your app is not a "Game" then it will not be allowed on the App Store if it integrates Game Center. See here... http://abitofcode.com/2012/05/so-what-happened-to-sketchshare/ This app was removed from the app store (having previously

Handle invitation to GKTurnBasedMatch without game center view controllers

ぐ巨炮叔叔 提交于 2019-12-04 08:18:53
I am working on a simple turn-based word game, and I'm having a difficult time figuring out how invitations are working. When user A invites user B to a game, I want user B to be able to see this game in my custom match interface (ie a screen where all of user B's games are listed). Things are fine if user B clicks on the notification when he is invited to a game, but I still want the game to be visible through my own interface if user B just navigates to the app on his own. Whenever this match interface screen appears, I am using [GKTurnBasedMatch loadMatchesWithCompletionHandler:] to get all

Send NSString via Game Center

﹥>﹥吖頭↗ 提交于 2019-12-04 06:35:44
问题 I want to send NSString form another one to another one iPhone/iPad via Gamecenter but it crash with EXC_BAD_ACCESS here in .h file typedef enum { kMessageTypeRandomNumber = 0, kMessageTypeGameBegin, kMessageTypeSubmit, kMessageTypeExchange, kMessageTypePickup, kMessageTypePass, kMessageTypeGameOver } MessageType; typedef struct { MessageType messageType; } Message; typedef struct { Message message; NSString *submitTile; } MessageSubmit; and here in .m file - (void)sendData:(NSData *)data {

Inviting a Game Center friend to a match programmatically

♀尐吖头ヾ 提交于 2019-12-04 03:26:14
Does GameKit allow you to invite a specific Game Center friend to a match, programmatically, i.e. without presenting the GC ViewController? The following handleInviteFromGameCenter documentation seems to imply that you can populate GKMatchRequest.playersToInvite and use it with [GKTurnBasedMatch findMatchForRequest]: When your delegate receives this message, your application should create a new GKMatchRequest object and assign the playersToInvite parameter to the match request’s playersToInvite property. Then, your application can either call the GKTurnBasedMatch class method

ios7 can't get login in gamecenter gain after cancel 3 times [duplicate]

烂漫一生 提交于 2019-12-04 02:22:01
This question already has an answer here: Unable to sign in Sandbox gamecenter on iOS 7 4 answers The problem is strange. My system version is IOS7. Everything goes fine on ios7 simulator. However, when I try authenticate on my iphone, the error in the callback block is always "GkErrorCanceled: the requested operation has been canceled or disabled by the user". Even if I've already logged in game center, the error still pops. I tried google the problem, and find someone on stackoverflow had conquered the issue: iPhone Simulator 6.0 not able to connect to gamecenter in sandbox mode . I tried

Update a score already submitted to Game Center

℡╲_俬逩灬. 提交于 2019-12-04 00:43:36
Right now I am working on a Black Jack game for iOS and would like to have a leader board that shows which players currently have the most "money". So if they get a high score and then lose "money" it would update their high score to match the users current amount of money, which would be less than before. Is there any way to do this with Game Center? Things have changed since iOS7. Now you can change the "Score Submission Type" to "Most Recent Score" instead of "Best Score". This is an option in iTunes Connect when you create a new leaderboard. Sorry to disappoint you but Game Center only

“This game is not recognized by game center.” iPhone Development

廉价感情. 提交于 2019-12-03 16:38:53
问题 There are already a couple of questions on this but I followed their steps to solve it and it doesn't seem to work for me. Here's what I have done: 1. I double checked to have the bundle identifier in the xcode project to be the exact same as the provisioning profile found on the provisioning portal (it also says Game Center is enabled). No wildcards. 2. I have logged in using a sandboxed account to gamecenter (made 2 accounts incase one wasn't sandbox). I did see the word "sandbox" with some

Sandbox Game Center Turn Event Notifications Not Consistent

时间秒杀一切 提交于 2019-12-03 16:30:14
I'm making a turn-based game, using the Game Center Turn-Based Gaming functionality. I'm using the simulator and my iPhone to test notifications of turn events. The results are very inconsistent. About 75% of the time when I make a move on the simulator and pass the turn I don't get any notifications on my iPhone. It seems that this function doesn't get called: handleTurnEventForMatch:didBecomeActive: I set the GKEventHandlerDelegate in the code that authenticates the local user and it seems to be set correctly. The fact that I get notifications once in a while suggests that this isn't where