Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

iOS Game Center Problem SOLVED
Started by theromero Jun 14 2014 11:39 PM

1 reply to this topic
game center ios programming gamenetwork
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

theromero

[GLOBAL: userInfoPane.html]
theromero
  • Enterprise
  • Pip
  • 9 posts
  • Newbie

I spent so many hours wondering why my Game Center scores were not showing up. I followed all the code samples, but my callbacks were giving me ERROR: 17 for loadScores. So I never saw any scores or times that I reported to Game Center.

 

Well, it works now, and it had nothing to do with the code itself, but with the way Game Center works in Sandbox Mode. It was actually really easy to fix.

 

Make sure that you:

 

(1) Create a test Apple ID (appleid.apple.com) and log into Game Center in your device's Settings with that one.

 

(2) For all the leaderboards that exist in your profile, make your code fill them with a score. Just make sure ALL your leaderboards have a score (or time) in them.

 

(3) Make sure you use both your Apple IDs to populate your leaderboards with scores. I believe Game Center requires 2 users submitting scores before they become real.

 

All of a sudden, my scores and times started showing up.

 

My computer right now is OS X Yosemite (to build to device only), and iOS 7 on my iPad. Game Center doesn't work with iOS 8 Beta 1 right now.



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Corona Staff
  • 9,415 posts
  • Jedi

That's good to know.  In my experience with a single leaderboard, I had to have two scores, one from that non-developer account for it to show up, so maybe that's the actual trigger, not two scores, but a non-developer test account.

 

Thanks for sharing.

Rob




[topic_controls]
[/topic_controls]



Also tagged with one or more of these keywords: game center, ios, programming, gamenetwork