Questions about Game Center (sandbox)

I use fairly simple code modeled on the code in Strougo and Wenderlich, but strange things happen that I'm trying to figure out. A few of them:

1) In the Game Center application on the device, one game that I bought from the application store (namely Temple Run) appears in the sandbox along with the game I'm trying to debug. How did this happen? I have several other games for the app store with game center features that are not displayed, so not everything that appears on my device.

2) The game that I am developing has achievements and ratings. The code to represent both seems to work, but only my achievements appear in the Game Center app. He says “No Leaders” instead of showing my ratings. However, if I run code that retrieves information in the leaderboard, it works as expected, and I return my grades.

3) The game center application in the simulator does not say "No Leaders". He has leaders for my game, but he says "No rating." On the detailed leaderboard screen, he shows my rank as No. 1 out of 1 friend and No. 2 out of 2 players, and in detail, he shows the actual ratings in my test game.

4) The simulator game center application says that I have no achievements, even if the device’s game center application correctly shows the achievements. Is the Game Center simulator an application that simulates a Game Center server, rather than communicating with a real Game Center server?

5) I consider myself one of my “friends”, although I did nothing to become a friend (to explain No. 3 above)?

6) The leaderboard screen on the device looked as if it worked at first glance, but I just realized that the readings it shows are numerically incorrect! What's up with that? Maybe they stayed from yesterday or at another time?

+4
source share
2 answers

1) Game Center accounts are sometimes stuck in sandbox mode, one of which is exiting the Game Center application and entering the system from the game (in this case, the temple move)

2) I have similar problems too, I think some of them are related to sandBox accounts. For example, I do not see any of the ratings that were set when I send an invoice from only one device, as soon as the second device sends an estimate, they both appear in the leaderboard.

Have you also included Game Center for the current version of iTunes Connect?

+1
source

I know this is old, but I found an answer that helped me and could help someone else. Also, the itunes connection has changed a lot over time, perhaps this answer is more appropriate for recent problems. I hope the OP fixes all its problems by now.

2) This can do the trick. 2 test accounts. iOS Game Center: results are not displayed in the leaderboard in the sandbox

Even with one device, you can have several test accounts with email: https://developer.apple.com/library/ios/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/Chapters/SettingUpUserAccounts.html#//apple_ref/doc/ uid / TP40011225-CH25-SW9

This answer is more about the question that helped me. But for others:

1) It happened to me. I do not know if this was because the application was open when I entered the Sandbox environment, or if the latest download applications could affect it somehow - in any case, the applications show there; but it seems harmless.

3) I always hear to test on devices always, so I believe that you should not take into account the simulator. And answer 2 can solve this question.

4) Did you check inside itunes connect if you added Achievements to the game? And I mean added, not just created. After creating, you must paste them into the “Versions” tab, find the Game Center part, click “+” on “Achievement”. I always forget to add in-app purchases in the same way.

5) As you said, “going through the temple” appears in blue on your account, perhaps your test game appeared on your “not test account”, but without the GC data recorded on it.

6) I do not understand. Sorry for my English. A) Do they look like a regular order (high to low), or B) is the score itself wrong? For example: you scored 7, but it shows the previous 5. A) This happens all the time, and I think the sandbox is a lil buggy. Therefore, I double-check the high score in the player’s settings, and when checking, I always parse the value again. B) You can change the order in which points are displayed when creating the leaderboard.

https://developer.apple.com/library/mac/documentation/NetworkingInternet/Conceptual/GameKit_Guide/LeaderBoards/LeaderBoards.html#//apple_ref/doc/uid/TP40008304-CH6-SW22

Every time I create a new game, it's a GC GC. Hope this helps anyone.

0
source

Source: https://habr.com/ru/post/1401294/


All Articles