Posting Score to Game Center
Hello. I've gone through tutorials, videos, and other discussions surrounding this problem but none of the things I've tried have worked. Right now I'm testing my ad-hoc version of my game on my ipod. I have a button which allows the player to post their score on Game Center.
I've tried:
-Having the Platform- Post Score by itself
-Adding a timer and then Platform - Post Score by itself
-Typing the Leaderboard ID manually
-Using the expression editor to type the Leaderboard ID manually
-Saving the Leaderboard ID in an attribute then saving it in the expression editor
-Signed out of game center before playing the game, signed in once in game, then hitting the score button
-Waited hours and no score shows up into game center
So far none of these things have worked and I still can't see my score on Game Center. Also, I've checked iTunes connect and the leaderboard is enabled. I'm at a loss here.
Comments
@WanderingAway ...
I've ad hoc tested Game Center only once.
It was...what I thought...a difficult process. You are suppose to be "sandbox" testing.
Ultimately you have to create an email address you will use only....ONLY...for sandbox testing...go to iTunes connect and under users and roles...add that account. Then under you app you have to go to the sandbox section (under pre release) and add that account in "sandbox". Then on your device...you have to sign out of your normal Apple ID and sign in with your sand boxing account. Do your testing.
WHATEVER YOU DO DO NOT THEN LEAVE THE APP AND GO TO ANOTHER GAME THAT LODS INTO GAME CENTER. THIS WILL ACTIVATE THAT SANDBOX ACCOUNT AND DEACTIVATE IT AS A SANDBOX ACCOUNT....make sure you log out and sign back in with your normal account before playing any other game that logs into GC.
Read this....
If your app uses Apple technologies such as Game Center or In-App Purchase, you’ll want to test how your app performs with those technologies before you make the app available to users. iTunes Connect provides an interface to define sandbox tester accounts for app testing. You’ll need to configure the iTunes Connect record for your app, including configurations for the store technologies that the app uses. When you log in to a device using a sandbox tester account and run your app in development mode, the app can connect to the relevant Apple services.
Important: If you mistakenly use a sandbox tester account to log in to a production environment on your test device instead of your test environment, the sandbox account becomes invalid and can’t be used again. If this happens, create a new sandbox tester account with a new email address.
Creating Sandbox Tester Accounts
Only iTunes Connect users with an Admin or Technical role can create sandbox testers.
Because you can’t edit sandbox tester accounts after you create them, you’ll want to be organized when creating them. Consider creating a spreadsheet with the relevant sandbox tester information you’ll need for all of your testing. For example, you may want to name the sandbox tester email accounts to reflect the app being tested, its version number, and the language being tested. You’ll want to correlate each language with a corresponding store territory.
../Art/mt_test_user_list_2x.png
These are the values that need to be provided for sandbox tester accounts:
First name
Last name
Email address
Password
Secret question and answer
Date of birth
Store territory
Because the email address used to create a sandbox tester account can’t be associated with any existing Apple account, consider creating a dedicated email address for each sandbox tester.
If your email service provider supports email subaddressing with a plus character (+), use subaddresses of a standard address for each sandbox tester account. For example, if your base email is foo@example.com, use the foo+us@example.com, foo+uk@example.com, and foo+jp@example.com email addresses when creating sandbox tester accounts in iTunes Connect. All communications sent to the subaddresses are sent to the base address.
To create a new sandbox tester account
Sign in to iTunes Connect.
On the homepage, click Users and Roles.
../Art/UsersAndRolesIcon_2x.png
On the Users and Roles page, click Sandbox Testers.
If this option isn’t displayed, your user account doesn’t have an Admin or Technical role.
Click the plus sign to add a new sandbox tester.
Enter information for the sandbox tester, including store territory, and click Save.
Searching for Sandbox Tester Accounts
To search for a sandbox tester account
Sign in to iTunes Connect.
On the homepage, click Users and Roles.
../Art/UsersAndRolesIcon_2x.png
On the Users and Roles page, click Sandbox Testers.
If this option isn’t displayed, your user account doesn’t have an Admin or Technical role.
In the search box, enter text you want to match part of all of the name or email address of the sandbox tester whose account you want to find. As you type, the page lists the users whose email addresses or names match the text you entered.
Updating and Deleting Sandbox Tester Accounts
After they are created, sandbox tester accounts can’t be modified. If you need to make a change, such as setting a new territory for testing, create a new sandbox tester using a new email address. Make sure to update your own records of sandbox tester information when you delete and replace a sandbox tester.
To delete sandbox testers
Sign in to iTunes Connect.
On the homepage, click Users and Roles.
../Art/UsersAndRolesIcon_2x.png
On the Users and Roles page, click Sandbox Testers.
If this option isn’t displayed, your user account doesn’t have an Admin or Technical role.
Click Edit.
Check the checkbox next to each user you want to delete, and click Delete.
Confirm the deletion in the dialog box, and click Done.
Note: Note that even if you delete a sandbox tester, the Apple ID no longer be used for either sandbox testers or iTunes Connect users.
NextPrevious
Copyright © 2015 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2015-04-30
Complete Guide to iOS Publishing {} Complete Guide to Mac Publishing
@Thunder_Child Thanks for your quick response! At first I did create a sandbox tester, but I see that I accidentally put it under "iTunes Connect Users" instead of "Sandbox Testers" stupid me. So after reading what you wrote I tried to make a new tester under "Sandbox Testers". After that, I signed into my sandbox tester on my device then clicked my app. At the beginning it wanted me to log into game center, which it was supposed to do, so I logged into it using the sand box user I created.
However, I am still running into the same issue . Once I played my game and tried to post my score nothing happened. I checked Game Center, nothing is there. When using the "Platform - Post Score" behavior would it be best to maybe add some sort of timer (would it be best to use after or for?) or would it be best to make it immediately happen once the user clicks the button to post the score? Am I supposed to see Game Center pop up after sending a score or will it just go straight to Game Center and I just need to check Game Center?
@Thunder_Child Actually, maybe nevermind O_o. I left my computer and ipod for 10 minutes and then coming back I finally see the score! I think it was because of the timer I had that it didn't respond right away. Thank you so much!!!
Yea cool ! Glad it worked. There are delays posting scores in sandbox at times.
Complete Guide to iOS Publishing {} Complete Guide to Mac Publishing