Game Center: Post Score = "...could not be completed due to an error communicating with the server."
I have followed TShirtBooth's very good video about doing everything to setup Game Center with your app...

But I always get this message when trying to post a score from my Ad Hoc build...
"The requested operation could not be completed due to an error communicating with the server".
Has anyone had this problem, and then figured out a fix? I really can't see where I'm going wrong.
Just went Pro yesterday, and just want Game Center to work for me.
- Murray

But I always get this message when trying to post a score from my Ad Hoc build...
"The requested operation could not be completed due to an error communicating with the server".
Has anyone had this problem, and then figured out a fix? I really can't see where I'm going wrong.
Just went Pro yesterday, and just want Game Center to work for me.
- Murray
Comments
I just need to log out of it, then load the game, then log in using Sandbox mode, yeah?
Anything else special to do there?
- Murray
Should that work fine?
Can you have something like com.supercalifragilisitc.myverylongleaderboardIDstring
...for example?
Are there limits to what you can use in that string?
Could you make it 3r.567rg|56kjfgefr,rtkisdgt/50f0h?
Are others fixing this problem?
If I just go into Game Center, and look at my games, I can see my game I'm working on in the list, and it says "No Leaderboards".
Does this take a while to update, after they've been enabled? Or is there something I can do to ensure that my leaderboards that I've created are being detected by Game Salad?
Can I flush out all signs of my provisioning profiles on my device? Or something?
Enable GC in itunes connect
Create leaderboards
Go into App info and there is a button to enable GC (different to the 1st point)
Make sure you are using a development profile which has the same bundle identifier for what you created it with. i.e. com.hymloe.mygamename
Make sure before posting scores that you use a GC login behaviour from within GS.
Make sure that you are writing to that same bundle identifier from GS.
That should be everything.
You can't actually specify what Bundle Identifier you're using in GS, can you? I mean, you just specify the Leaderboard ID, and that's all you can do, yeah?
Also there was mention in the initial Game Salad video about the Game Center demo project, that you don't actually need to use the Login feature, as it does it the first time you use Post Score or View Leaderboard. Is that correct? Or is the Login action required beforehand?
Thanks!
Not sure on your last question, i like y user to be able to turn GC on and off and this is controlled by an attribute, as soon as they switch it on i have a login behaviour.
Another thing to think about is allowing enough time to post, i.e. you die. after 0.2 seconds post score. after 1 second restart scene. You will want to break all this up so all the rules have enough time to fire off.
I'll try to update my provisioning profile, as I originally made it before I'd enabled Game Center. Now that I've enabled Game Center, maybe I need to update my provisioning profile (although there's been no mention of that in any of the tutorials, so I have my doubts). Worth a try, I guess.
- Murray
Yeh i don't think that should make a difference, just make sure all bundle id's are the same between app id and provisioning profile you create.
Also, i know you've enabled the 1st gamecenter bit where you then go into creating your leaderborards but you then have to go into app info in iTunes connect and there is another enable GC button, without this enabled as well it won't post scores.
Good luck Murray, hope you get it sorted
On this page...
https://developer.apple.com/ios/manage/distribution/distribution.action
... it mentions the need for an "Ad Hoc Distribution Provisioning Profile".
I suppose this page is assuming the user is creating their application in XCode, not Game Salad. But do I still need a special Ad Hoc Distribution Provisioning Profile?
I assume that's what I'm already using that I created at the Developer Center > iOS Provision Portal > Provisioning > Distribution page...
I created an Ad Hoc Provisions profile there. I don't have a Developer Provisioning Profile for my game, just a Distribution one. Is that correct? Do I need a Developer Provisioning Profile for my game, too?
It should be noted that my App ID looks like this...
AT4G8KB3R2.com.hymloe.gamename
While my BundleID looks like...
com.hymloe.gamename
I assume that's the correct match? And that the App ID just has that extra stuff at the start...
The ad hoc is just built through GS using the development provisioning profile you mention from here - https://developer.apple.com/ios/manage/provisioningprofiles/index.action.
When releasing for the appstore, you would create another provisioning file but click the distribution tab, not development and setup a profile there, you would use the same app id that has all the matched bundle id info in. You then use that to publish through GS as you would an ad hoc.
App id and bundle id all looks fine.
I'm still at my wit's end, and no idea how to proceed, I've been trying for hours and hours. No luck. But thanks for your help. It does help clarify things, at least!
- Murray
I didn't like it, so ever since I always select non-glossy icon.
AFTER making my first Ad Hoc build, I went Pro, then setup and added Game Center to my game.
However, ever since, when I am editing my app settings in iTunes Connect, my game is always shown as the glossy icon.
Is this just a default thing, or is something lingering around there from my older settings? Perhaps that could explain why Game Center is unresponsive to me...?
My more recent 4 ad hoc builds all seem to build fine, I test them on device, and it's all updated, the icon is non-glossy, my Game Center buttons are there, etc.
So maybe it's nothing.
Just wondering... is there a way for me to DELETE all existence of my game under the Game Salad PUBLISH menu, so I know for sure that I'm starting a fresh?
Or is it fine to just click UPDATE, and go from there?
- Murray
MLHighScore
for example?
Or does it need to be something like...
com.hymloe.gamenameMLHighScore
?
I'd rather stick with the one I'm with for now. But is that maybe causing the problem?
Vomit. This is the sort of thing that makes me want to just smash my computer and live in the mountains.
Boring, frustrating, stupid !@#$%.
Still no good. Can't figure out what I'm doing wrong.
Any help would be magical.
You cannot delete games from your publish portfolio in GameSalad ... Annoying i know!
Leaderboard needs to be in the full format. i.e. com.hymloe.gamenameMLHighScore
Version of GS shouldn't matter.
Another thing to think about is you have a list of registered users. You'll need to login in Sandbox mode in GameCenter for your app to post. Once its live its OK but as its ad-hoc, you need to register a 'test' user and be signed in with that.
Would you be able to tell me where to make these registered test users?
- Murray
iTunes Connect > Manage Users > Test Users
I'm trying that now. Thanks!
Thanks for putting up with all my whining!
I made sure I checked up on all the naming formats and things, like you said. And I have upgraded my iOS on my iPod Touch 4 to 5.1 (although I'm not sure if that's relevant), and I made the proper test account through iTunes Connect. That seems to have been the key thing, it would seem.
Strange that I had not come across mention of that in any of those videos and other posts around the place. Thanks so much!
PHEW.