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.
I would like to have an ad to appear in between your app is running.In the iAd, the ad runs in the top or the position you place your iAd Banner. At times, the user might not press the ad. However, i would like to my app to have an ad such that person have no choice but to click it. Meaning to say that the ad appears in between when the app is running and the user has to click to cancel it. In this way, he uses the ad. An example of this type of app is Touch 4. I am interested in making this type of app.
Need some guidance on how to start this. Thanks.
Check this out. It is only for iPad though. (it is against the rules to do the same thing on the iPhone)
http://developer.apple.com/library/ios/#documentation/userexperience/conceptual/iAd_Guide/Full-ScreenAdvertisements/Full-ScreenAdvertisements.html#//apple_ref/doc/uid/TP40009881-CH5-SW1
This is different from the others; it's cool.
I know that your Bundle Identifier needs to match your iTunes Connect's version. I know you need to make a new AppleID through your dev app and not through Game Center. Most people get this fixed when they force quit their app and game center and launch theirs first.
I am not one of those people.
If I take the GKTapper tutorial and use my game's Bundle Identifier as the only change, things are good. On launch, it asks me if I want to use an existing or make a new account. But more importantly, it says * Sandbox *. (Before I log in, mind you; this is not an account problem at all.) Once inside I can see my achievements.
If I load my game, I has a sad. On launch I get the same dialog, but it does not say Sandbox. My game is two weeks away from being done after many long months. Moving everything in to a new project is possible, but a pain. So the question is:
What magic setting does GKTapper or a new project have that my game that I started in June does not that lets you get to Game Center's Sandbox?
YOU HAVE GOT TO BE KIDDING ME.
The "Sandbox" tag doesn't show up in landscape. It worked the whole time. I would delete this question but people need to be able to search for this. I just enabled portrait and flipped back and forth and watched Sandbox appear and disappear through my tears.
is it possible to have an icon on the iPhone home screen, programtically without user doing it. I mean , when you visit Youtube on your iPhone, it asks you to add a home screen button, which you click and then it takes you directly to the youtube page. I need to know that if it's possible to add a home screen button automatically , without even asking the user to add it.
Short answer - No.
Little longer answer - if sites will have rights without user permission add web-apps on springboard, allow location services and so on. This is mess... Thats why you can't do such thing due to privacy & permissions.
Maybe on jailbroken iOS, but not sure about that.
No, you cant have the shortcut for the home screen. This link will assure you that.
However, there's a slightly related solution.
I have to put a lot of iPads on a stantd on a tourist fair to show our web, and we don't want that people can use these iPads to play/enter facebook/etc. Is for this that I was searching an application that put the iPad on kiosk mode to show fullscreen our web, but that's ridiculous if the user can press home button an go to springboard...
Is for this that I start to develop a fullscreen browser without address bar, only show a URL that is selected programatically, and I think to deploy this app on our iPads (we have a developer account), but we have the same problem: if the user press home button, he can select Safari and enter to any website.
In conclusion, we need to disable home button to hold the user on our website (I know that if press and hold home button + power button, iPad reboot, but the power button will be disable physically on the stand), and I also know that this app will not be approved by Apple, but as I said before, this app will be only to the fair stand.
Thanks.
Four years after, I found the response.
No, you cannot disable the home button. (And thank Apple for that. Who knows how many people would believe that their app is so fantastic that people ought not stop using it ever.)
Why do you need to disable the home button anyway? Why not build a stand for the iPad that blocks access to the home button?
Could you not use the parental controls to restrict/prevent access to Safari, Mail app's etc?
On iPad,
Settings > General > Restrictions
You can then easily remove app's such as Safari from the ipad's springboard, and to enable access requires a code (which you set) so no one would be able to access default app's that you don't want them to :)
Of course people would still be able to exit your app by pressing the home button, although they would not be able to do anything, and you can even stop them from deleting apps through the restrictions settings.
The only way to prevent exiting via the home button would be to physical stop people from pressing it by having the stand cover it over.
There are companies that make specific products for this type of thing. Here is a write up a couple (they are not cheap)...
http://www.tuaw.com/2010/04/26/ibracket-turns-your-ipad-into-an-ikiosk/
Steven
Probably too late for the OP but for anyone else trying to do this then see my answer here Lock-down iPhone/iPod/iPad so it can only run one app
I had been trying to do the same use case and pretty much everyone on stack overflow is saying it's not possible. Turns out that it is.
More than 4 years after, I found the answer, haha.
I'm not sure since when, but now we can block to use only one app from Settings > General > Accessibility > Guided Access
After that, we can do triple tap with our app opened, and it will be locked.
Also, we can use Apple Configurator to "Lock to App", but this way required to install a profile in the iPads (it wouldn't be a problem four years ago...).
It is possible. But I think Apple may reject your app. I found a link with good explanation here
And this might help also.
http://www.akadia.com/services/ssh_test_certificate.html
http://www.verisign.com/support/verisign-intermediate-ca/code-signing-intermediate/index.html
Blocking home button access is desirable where these units are used commercially as promotional displays or in point of sale environments. It would be useful, actually, if Apple licensed developers of point of sale apps to be able to do this - it would be no problem for this function to be specific to registered ipad units....and it would also make the ipad less of a theft target. it would be useless to anyone but the owner. right now the only answer is to physically cover the button in an enclosure, thus concealing Apple's investment in a beautiful product design.
Achieveable in software like so:
Settings > General > Accessibility > Guided Access
Set a pin if your iOS device has public access.
once in the app you want to lock down, triple click the home button to enable guided access. With this on users will be restricted to your app (or webclip) and required to enter the pin to exit to iOS home if they hit the home button.
There is no solution for this issue, maybe if you jailbreak your device, there is one, but I don't think so.
Please see: Temporarily Lock or Disable iphone home button
Why do you need to block the button? If it's some kind of evil plot to make developers only use the device for developing, the home button IS important: you must test what happens when the real user do that.