How to implement Game Center in an iOS application?

I'm a little confused now. I read a lot of articles that describe how to implement a game center. They all mention that I need to first create an application on itunes connect.

So, should I send my application to iTunes first? Why should I do this? Should I set a later release date than?

All suggestions are appreciated!

+6
source share
2 answers

You just need to create an app id in iTunes Connect. When you create an application identifier, you simply transfer some metadata (the most important of which is the package identifier) ​​about your application, but you do not need to send any binary files. You send the binary application when you want to send it to the App Store.

You must create an application identifier as it will allow you to use the game center server to run your tests.

Ray Wenderlich blog has a very good tutorial: How to make a simple multiplayer game with the game’s training center

+11
source

You do not need to submit your application, but you need to create the application in iTunes Connect. Basically, you log all the metadata about your application (e.g. name), but you don’t actually download the binary. In the application management area, you set Game Center ratings and achievements.

Before doing this, you need to create a unique identifier for your application. You create an identifier in the Provisioning area and are called the application identifier there, but when you really select the ID in iTunes Connect, it is called the package identifier.

Please note that the way that iOS actually connects Game Center to your application uses the package identifier in the provisioning profile, so be sure to create a new development profile without wildcards that will be used to create your application.

And finally, it’s important to connect to the test sandbox, and not to the “real” game center during development. Basically, if you are not logged into the Game Center during the game, then a pop-up window will ask if you want to enter the test environment.

+4
source

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


All Articles