iTunes connect enable game center - app-store-connect

I try to test Game Center in my iPhone game, but when I try to connect with the following lines of code I get an alert that says "This game is not recognized by Game Center.".
[[GKLocalPlayer localPlayer] authenticateWithCompletionHandler:^(NSError *error) {
if (error == nil)
{
// Insert code here to handle a successful authentication.
}
else
{
// Your application can process the error parameter to report the error to the player.
}
}];
Now I've read many forums and looked at the Apple documentation, but I can't find how I can enable the Game Center option at iTunes connect. I think I need to first add an application to "Manage application" and then enable the Game Center option. But how can I add an application only for testing?
Thanks for any help :)

I think the problem was in wrong cocos2d version. After moving to v0.99.5 game center started working.

I am testing an iPad app with the iPad simulator. I was having a similar problem.
I had followed all the steps as specified in the "Game Kit Programming Guide", including setting up iTunes Connect. Even so I was still getting the error message: This game is not recognized by game center"
My app was only recognized when I deleted it from the simulator and re-installed it, as suggested by iMuller.

Related

App crashes on iOS (Phonegap) if multiple images are captured from camera

I am developing Phonegap Application and my application has scenarios where camera is used very frequently.
In my application I have used custom camera plugin (https://www.npmjs.com/package/cordova-camera-custom) to take picture and use it in my application.
Now when I capture images from this camera 30 times by opening camera and capturing again and again the app goes to crash.
The app just crashes so I am not able to identify the root cause of the crash.
I am not an iOS Programmer though I have tried to check the plugin code but I was not able to find the cause.
You can even check the plugin code on your end if needed.
I have also posted this issue to DevExtreme, the framework which I am using to develop hybrid applications at following link:
https://www.devexpress.com/support/center/Question/Details/T480068
and they found that issue indeed is related to memory shortage. The error message was with bug_type: 298 and fault cause: vm_pageshortage.
Please help me on this, I am struggling on it since long before.
Any Help is greatly appreciated.

Worklight persistent busy indicator

I'm working on a project using IBM Worklight and any time I build and deploy my project on any simulator or device, I have this busy indicator spinner in the middle of the screen. Its always there, on every page and its there in the ios, windows, web and android simulators as well as one android device we've tested on. Has anyone seen this before and if so how would I get rid of it.
Jquery-mobile was the problem, it was continuously displaying the indicator for seemingly no good reason. Deleting Jquery mobile fixed the problem
I already used the native worklight loading.It is very good and I tested it on different platforms, devices. But it is necessary to close it when you leave the function that opened it.
Example:
var busyInd = new WL.BusyIndicator ("content", {text: "Please wait..."});
function consult(){
busyInd.show();
//impl
busyInd.hide();
}

iOS Game Center simple leaderboard

I have an iOS app using Sprite Kit that I would like to add a simple leaderboard. I have tried several tutorials, but all are for an older version of Xcode and iTunes connect. As of now I have successfully authenticated the user (ie. when I open the app it says welcome back, or asks to log in if I am not logged in).
Could someone please point me in the direction of a tutorial that encompasses a simple leaderboard (such as in Flappy Bird) that will explain the iTunesConnect side and coding within my app that is up to date with iOS 7 and Xcode 5? Thank you!
The apple documentation for leaderboards is quite good. It explains how to do the iTunes connection portion and another page has the Xcode implementation with code examples.
You can find the iTunes connect info here: https://developer.apple.com/library/ios/documentation/LanguagesUtilities/Conceptual/iTunesConnectGameCenter_Guide/Leaderboards/Leaderboards.html#//apple_ref/doc/uid/TP40013726-CH2-SW1
The code examples are here: https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/GameKit_Guide/Achievements/Achievements.html#//apple_ref/doc/uid/TP40008304-CH7-SW3
Outside of that the app coda link that Iraklii mentioned is a great one.

iOS7 - Game Center Integration

I spent all day searching for a tutorial on how to integrate Game Center into my iPhone app with no luck. I found few of them but they are either incomplete or obsolete.
1. I need a tutorial or documentation or any working source code.
2. Do I absolutly have to add my app in iTunes Connect during dev/test phases?
Here's some documentation about GameCenter that should get you started: GameCenter Programming Guide.
And yes, you absolutely have to add your game to iTC during development as well as prepare all your leaderboards and achievements (if any). If your game isn't completed yet, I have found it useful to just add any screenshots to iTunes Connect until you finish. If you don't have any previous apps, simply put in any image of the correct size, same goes for the app icon.
Hope this helps!

Game Center for my iPhone Game

I am developing an iPhone game, and I will implement Game Center in it.
Apparently, I need to do some configuration with my application in iTunes Connect first. Therefore I have to "create" my application in the iTunes Connect page, right? But, how do I do that without getting Apple's staff review my app since I am still working on it?
I tried making a new app like normal, but it asks me for a bunch of stuff like screenshots etc, but I have none to offer in the first place...
Fixed. It seems they won't even review it if there is no binary uploaded yet.