game-center

Is there any web api for Apple's Game Center? [closed]

拥有回忆 提交于 2019-12-18 17:27:10
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I have a website. I was wondering if Apple exposed its Game Center data via a web api. If would be cool if I could show users their

Setting up third-party server to interact with Game Center

∥☆過路亽.° 提交于 2019-12-17 23:18:47
问题 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

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

我怕爱的太早我们不能终老 提交于 2019-12-17 22:24:58
问题 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

GKMatchMaker invite handler deprecated

僤鯓⒐⒋嵵緔 提交于 2019-12-17 20:26:46
问题 I have the following code that I have been using before to handle invitations: [GKMatchmaker sharedMatchmaker].inviteHandler = ^(GKInvite *acceptedInvite, NSArray *playersToInvite) { // Insert game-specific code here to clean up any game in progress. if (acceptedInvite) { GKMatchmakerViewController *mmvc = [[GKMatchmakerViewController alloc] initWithInvite:acceptedInvite]; mmvc.matchmakerDelegate = self; [self presentViewController:mmvc animated:YES completion:nil]; } }; However, now it has

How to authenticate the GKLocalPlayer on my 'third party server' using PHP?

眉间皱痕 提交于 2019-12-17 19:54:19
问题 Please forgive my clumsiness, I'm new to Stackoverflow, C#, and Objective C. In a nutshell, I'm trying to do what is answered in this question, but in PHP: How to authenticate the GKLocalPlayer on my 'third party server'? Hopefully this will also help other PHP devs working on the same thing. I'm using Unity (Unity3D) and PHP server-side. I've got Objective C properly connecting to GameCenter and returning data via a call to generateIdentityVerificationSignatureWithCompletionHandler .

Game Center Outcome Posting

人走茶凉 提交于 2019-12-14 03:58:52
问题 I’m doing a turn based game... the only information transferred is the score of the player and whether a turn has been sent. When the next player receives the turn. The data gets stored into “scoreToBeat” and turnSent=1. The player then takes their turn. Afterward the game ended gets called because turnSent=1. I used the turn based tutorial by Ray Wenderlich at http://www.raywenderlich.com/5480/beginning-turn-based-gaming-with-ios-5-part-1. In his case the game ends and is a tie. Like this...

iPhone game - full and lite version and game center (bundle id)

杀马特。学长 韩版系。学妹 提交于 2019-12-14 02:47:42
问题 I am trying to add game center to an existing game that is already up in the App Store. The game has both a full and a lite version (with unique bundle ID's for each version). Since game center depends on the bundle ID, can I get the full and lite versions to play against each other? My understanding is that each app must have a unique bundle ID since Apple uses it to actually determine the app (for updates and stuff). 回答1: Each game have each bundle id, therefore Game Center will be a

Trouble and needed clarification for Itunes Connect

六眼飞鱼酱① 提交于 2019-12-13 05:17:33
问题 I am adding game center to my application and I feel lost. First of all,, my app is nmot a game, but I want people to see thier friends "score". Will I have to classify the app as a game? I am working on adding my app to itunes connect but I dont quite get it. When I add it and select the distribution date, will I have to distribute it? What happens when that day is reached? Do I even need to do all this to use gamecenter in my beta version? How does the app know its connected to itunes

iOS8 GKLocalPlayerInternal Unrecognized Selector

落爺英雄遲暮 提交于 2019-12-13 05:03:24
问题 Just installed ios8 on my device and am now receiving this error: -[GKLocalPlayerInternal name]: unrecognized selector sent to instance 0x1b6e3f80 I do not see this error on two other devices with ios7 installed. On my device with ios8 installed I have already verified that GameCenter Sandbox is enabled by going to settings -> GameCenter -> Check "Sandbox" I can avoid the error by commenting out this code below: // after checking that game center is available and authentication handler has

How do you convert int into int64_t

╄→гoц情女王★ 提交于 2019-12-13 02:42:21
问题 I am creating a game and I want to intergrate Game Center into it. I have looked and it turns out that the integer that you want to submit has to be int64_t . And the int that I am using is a standard int. how would I convert my high score int to an int64_t ? 回答1: You can try to cast the int to int64_t : int a = 12345; int64_t b = (int64_t)a; 来源: https://stackoverflow.com/questions/16185782/how-do-you-convert-int-into-int64-t