Game Center Leaderboard: Best Practices
Yodapollo
Inactive, Chef Emeritus Posts: 447
Hey, everybody!
Our dev & game teams got together and put together this awesome set of "Best Practices" for integrating Game Center leaderboards into your game.
Recommended practices:
1. Do not fire a Game Center behavior at the very beginning of a scene. Place it within a rule or within a timer so that Game Center behaviors don't fire at the beginning of a scene.
2. Do not try to fire all Game Center actions at once
3. Game Center will only work with published apps, not in Creator or Viewer. An ad hoc version can be used to test the leaderboards created in iTunes Connect for the game.
4. When creating your game, don't rapidly fire Login and Post Score actions.
Issue: I keep logging in and getting cancelled out
1. Login to Game Center
2. Error:There was an error logging into Game Center. The requested operation has been cancelled.
Explanation:
1. This occurs when a user has cancelled out of Game Center login three times
2. Every subsequent login attempt will display the Cancelled error
Work-around:
1. Open the Game Center app
2. Log into and then out of Game Center
Issue: My scores won't update in the leaderboard
1. Login to Game Center with one account
2. Post a score to the leaderboard
3. Login to Game Center with another account
4. Post a score to the leaderboard
5. The leaderboard may not display all scores from the different accounts, or it may show scores posted by one account under a different account
Explanation:
1. Leaderboard scores sometimes take a while to update
Work-around:
1. This is an Apple issue. Users may need to give Apple's Game Center servers time to update
Issue: Scores are appearing with the wrong account
1. Login to Game Center with one account
2. While in game, show the leaderboard and observe the name of the logged-in player
3. Login to Game Center with another account
4. While in game, show the leaderboard and observe the name of the logged-in player
5. Sometimes, the name of the player is "Me" and other times, it is the name of the player's Game Center account
Explanation:
1. Some versions of iOS display the player's Game Center account name, and other versions only show "Me"
2. This varies depending on the iOS version number and is an Apple feature
Issue: My game is crashing when I try to create a new account
1. In the Apple's Game Center app, log into and log out of an account
2. Start game
3. Initiate login
4. When the login prompt appears, tap the home button to cause the game to hibernate
5. In the Settings for your iPhone, enable Airplane mode
6. Return to the game
7. Click on Create New Account
8. Game crashes
Explanation:
1. This has been observed in Apple's Game Center test app as well and is likely an Apple issue.
Issue: My game locks up when I switch Game Center accounts
1. In the Apple's Game Center app, log into an account
2. Start game
3. Initiate login
4. Hibernate the game
5. Enter Apple's Game Center app, and log into a different account
6. Return to the game
7. User might be logged out at this point
8. Hibernate the game
9. Enter Apple's Game Center app and relogin to the account
10. Return to the game
11. After the login prompt appears and then disappears, game is locked
Explanation:
1. This has been observed sporadically, sometimes occurring 100% of the time and sometimes not at all
2. Suspect this is another Apple Game Center issue
Our dev & game teams got together and put together this awesome set of "Best Practices" for integrating Game Center leaderboards into your game.
Recommended practices:
1. Do not fire a Game Center behavior at the very beginning of a scene. Place it within a rule or within a timer so that Game Center behaviors don't fire at the beginning of a scene.
2. Do not try to fire all Game Center actions at once
3. Game Center will only work with published apps, not in Creator or Viewer. An ad hoc version can be used to test the leaderboards created in iTunes Connect for the game.
4. When creating your game, don't rapidly fire Login and Post Score actions.
Issue: I keep logging in and getting cancelled out
1. Login to Game Center
2. Error:There was an error logging into Game Center. The requested operation has been cancelled.
Explanation:
1. This occurs when a user has cancelled out of Game Center login three times
2. Every subsequent login attempt will display the Cancelled error
Work-around:
1. Open the Game Center app
2. Log into and then out of Game Center
Issue: My scores won't update in the leaderboard
1. Login to Game Center with one account
2. Post a score to the leaderboard
3. Login to Game Center with another account
4. Post a score to the leaderboard
5. The leaderboard may not display all scores from the different accounts, or it may show scores posted by one account under a different account
Explanation:
1. Leaderboard scores sometimes take a while to update
Work-around:
1. This is an Apple issue. Users may need to give Apple's Game Center servers time to update
Issue: Scores are appearing with the wrong account
1. Login to Game Center with one account
2. While in game, show the leaderboard and observe the name of the logged-in player
3. Login to Game Center with another account
4. While in game, show the leaderboard and observe the name of the logged-in player
5. Sometimes, the name of the player is "Me" and other times, it is the name of the player's Game Center account
Explanation:
1. Some versions of iOS display the player's Game Center account name, and other versions only show "Me"
2. This varies depending on the iOS version number and is an Apple feature
Issue: My game is crashing when I try to create a new account
1. In the Apple's Game Center app, log into and log out of an account
2. Start game
3. Initiate login
4. When the login prompt appears, tap the home button to cause the game to hibernate
5. In the Settings for your iPhone, enable Airplane mode
6. Return to the game
7. Click on Create New Account
8. Game crashes
Explanation:
1. This has been observed in Apple's Game Center test app as well and is likely an Apple issue.
Issue: My game locks up when I switch Game Center accounts
1. In the Apple's Game Center app, log into an account
2. Start game
3. Initiate login
4. Hibernate the game
5. Enter Apple's Game Center app, and log into a different account
6. Return to the game
7. User might be logged out at this point
8. Hibernate the game
9. Enter Apple's Game Center app and relogin to the account
10. Return to the game
11. After the login prompt appears and then disappears, game is locked
Explanation:
1. This has been observed sporadically, sometimes occurring 100% of the time and sometimes not at all
2. Suspect this is another Apple Game Center issue
Comments
The user simply gets a message saying that Game Center is not supported on this device.
--Yodapollo
Does that mean no custom buttons for launching Game Center?
I noticed that the example template has a custom button, but if Game Center is not available... is there a custom alert?
You can assign the behaviors to the actors of your choice. That means you can create custom Game Center buttons to launch your leaderboards. The login behavior pulls up Apple's login notification. Post Score will send score to the leaderboard you dictate. Show Leaderboard will bring the leaderboard you specify. The buttons these behaviors can be assigned to can be customized just like any other actor.
--Yodapollo
It seems safer to simply hide Game Center buttons, and let players access the scores through the Game Center app... like Cut the Rope.
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
What's a Leaderboards button going to do on an app without Game Center? If the answer is nothing, then I think that risks instant rejection.
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
Its not working for me.
Cheers.
-in your project ( use gamecenter template) change "com.gamename.scores1" for you "scoreID"
-to test made an ahhoc using the same game ID (not gamecenter ID)
-for every new version enable gamecenter
sorry my english, hope you understand, good luck!
RIM Games
www.marcosriffel.com
Can I just call it leaderboard1
RIM Games
www.marcosriffel.com
To answer my previous post, the leader board Id can be what you want.
Best to use the com. System.
Cheers,
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
I am only getting the top one to post to game center.
Thanks!
Also I want to point to an annoying thing: when I open the app it logins successfully but the "Welcome" GC message appears in portrait direction and not in landscape. Can this be fixed? Or I'm doing something wrong?
________________________________
【ツ】iPhone Icon Pack 【ツ】 - 【ツ】Graphic Pack【ツ】
Free high score demo here (simple) and here (advanced)
I dont know what I am doing wrong. I know that for some of you this has been an easy process but for others it hasn't. Can somebody create a video like a step by step.
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left