Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to implement Game Center in iOS app?

I am a bit confused now. I read through a lot articles that describe how to implement game center. All of them mention that I have to create an app at itunes connect first.

So do I have to submit my app to iTunes first? Why do I have to do that? Do I have to set a later release date than?

All suggestions appreciated!

like image 785
UpCat Avatar asked May 25 '11 17:05

UpCat


People also ask

How do you get Game Center on iOS?

On your iPhone, iPad, or iPod touchOpen Settings. Scroll to Game Center, then tap it. Tap Friends to see a list of users who you're friends with and users who you've recently played with. Swipe left over the user's name to reveal more options.

How does Game Center work on iOS?

Game Center supports real-time and turn-based multiplayer functionality, helping players connect without leaving your game. Players can invite Game Center friends, contacts, iMessage groups, and nearby players, or automatch with other competitors to quickly start playing on iOS, iPadOS, and macOS.

Is Game Center An Apple app?

Game Center is a service by Apple that allows users to play and challenge friends when playing online multiplayer social gaming network games. Games can now share multiplayer functionality between the Mac and iOS versions of the app.


2 Answers

You just have to create an App Id on the Itunes Connect. When you create an App Id you just give some meta-data (the most important is the Bundle Identifier) about your application but you don't have to submit any binaries. You submit the binary application when you want submit it on the App Store.

You must create an App Id because It'll allow you to use the game center server to do your tests.

There is a very good tutorial on Ray Wenderlich blog: How To Make A Simple Multiplayer Game with Game Center Tutorial

like image 132
Yannick Loriot Avatar answered Sep 22 '22 17:09

Yannick Loriot


You don't need to submit your app but you do need to create an application on iTunes Connect. Basically, you register all the meta-data about your app (eg. the name) but don't actually upload a binary yet. In the app management area you setup Game Center leaderboards and achievements.

Before doing that though you need to create a unique ID for your app. You create the ID in the Provisioning area and it's referred to as the App ID there, but when you actually choose the ID in iTunes Connect it's referred to as the bundle ID.

Note that the way iOS actually connects Game Center to your app is using the bundle ID in the provisioning profile, so make sure to create a new development profile without wildcard characters to use when building your app.

And finally it's important to connect to the testing sandbox and not the "real" Game Center during development. Basically, if you aren't logged in to Game Center while playing your game then a pop-up will ask if you want to log into the testing sandbox.

like image 22
jhocking Avatar answered Sep 24 '22 17:09

jhocking