How to implement Game Center in iOS app? - iphone

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!

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

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.

Related

Game Center Not Recognizing my game

I am making a test app to learn using Game Center. I've read many tutorials and questions here in stack overflow and i'm on the right way.
Now, i have met a behaviour i don't understand and i thought someone might shed some more light upon it and solve my problem.
I have created a user from the Game Center on the simulator and i am able to enter into it.
If i'm logged into it, and then run my app i get the wonderful "Welcome back" sign from game center.
But when i log out of there it acts differently. I start my app and get the login form. When trying to log in i get a UIAlert that says the "This game is not recognized by game center".
How come? A minute ago everything went smooth…
Anyway, i tried checking the bundle identifier on iTunes connect and on my app, i checked that game center is supported on the iTunes connect. I even created a group (although i'm not sure what it means yet).
Nothing works. (except logging to game center before starting the app)
Any thoughts?
Let me know if you need any code
OK… This is solved now. The main issue was the bundle ID.
One place showed: com.myCompanyName.gameName
and the other: myCompanyName.gameName
The .com is what i missed.
Thank to all those who tried to help.
Very first thing you have to enable Game Center for your App_ID from apple.developer.com
.Next thing you need to make use of same App_ID as Bundle ID while creating App on iTunes Connect. And I hope you have added details of Game Center in that app on iTunes Connect. Also be sure you are using provisioning profile with same Bundle ID.

iphone app with Game Center

I am fresher for Game Center, and I cant understand from where to start, so can anyone help me for Game center,what should I refer first? Create app or create an App Id on the Itunes Connect??
First you need to create the app id ,based on that app id.
Now in itunes connect create new app,after you have created the app you would be show option for manage game center select and use as you want.
Now if you can use that bundle id in the app where using Game Center.
feel free to ask if not understood.

Can an iOS app have no icon?

Is it possible to create an app that does not appear in the Home screen, and allows another app to grab its resources (sounds, images, etc)?
I want to create a lightweight app (app #1) and upload it to the app store. Then I would like to be able to direct users to download an add-on (app #2) if they want that contains more images and sounds. Then app #1 would read these resources from app #2.
I'm trying to avoid having my own server to serve these images, and just have the App Store handle this for me. I know I can do this on Android, and was wondering if it's possible in iOS as well.
Is it possible to create an app that does not appear in the Home
screen, and allows another app to grab its resources (sounds, images,
etc)?
Not only can you not create an app that's hidden from the user, you also can't access the resources of one app from another. Each app lives in its own sandbox and cannot read (or write) into the sandbox of another app.
I want to create a lightweight app (app #1) and upload it to the app
store. Then I would like to be able to direct users to download an
add-on (app #2) if they want that contains more images and sounds.
Then app #1 would read these resources from app #2.
The normal way to do something like that would be to host the resources you need on a server or just store them inside your app.
I'm trying to avoid having my own server to serve these images, and
just have the App Store handle this for me. I know I can do this on
Android, and was wondering if it's possible in iOS as well.
No, not possible.
If you are able to use the In-App Purchase system, then Apple will host this for you. From the docs, I'm not clear if this is iOS 6 only or is available for older versions (I haven't seen any reason it wouldn't work for older versions, but I haven't tried it).
Note that most iOS 6 specifics are under NDA, so please do not discuss them here until iOS 6 releases. This particular fact is public, however:
https://developer.apple.com/technologies/ios6/
https://developer.apple.com/appstore/in-app-purchase/index.html
https://itunesconnect.apple.com/docs/iTunesConnect_DeveloperGuide.pdf
No it's not possible. You have to setup an icon and it will be displayed on the iPhone springboard.
No it cannot, why do you need one?
Sadly No in IOS but in android this is possible.
There can exist an app without an icon. But it can still be managed or removed in "Manage Application" under settings.
This is required in scenarios, like say I want this app to alert user when he is going out of region, using GPS in the background. I do not want any icon nor any user interface.

How do you test Game Center features for your next update once the app is live

I just released my iphone app that has game center multiplayer integration, and I am preparing for my next update. I have the bundle id for the test version of my app different from the one that is live, so it will not overwrite the live version. However I would not be able to access game center features, and I don't believe it's possible to attach 2 bundle ids to the same game center account. I was wondering what would be the best way to test game center features for my next update, when my app is already on the app store.

Iphone: Application feasibility

I am very new to developing apps on the Iphone (In-fact I am new to application development all together). I would like to know what the feasibility for an idea for a app on the iphone is.
1)The application would allow users to download content (audio or if possible video files) onto the device.
2)Each of these files will need to be purchased before downloading, at a fixed price.
3)The user can then play the downloaded files on the device.
Is such an app possible to be made on the Iphone?
If so can anyone give me pointers on how the payment procedure should be, and how revenue will be shared with apple?
From what you described, that sounds very possible.The users would pay you directly through a credit card for the files.
If you are already a registered apple-Developer, have a look at the InAppPurchase(IAP) ProgrammingGuide in the iOS-Devcenter.
The purchase of any content must be handled through IAP.
This is written in the App Store Review Guidelines, Item 11.2 (Because I'm new, I can't provide a link. Sorry for that)
It is not possible that users pay you directly.