the game is not recognized by game center - iphone

Hi
I am trying to add game center to my iphone app.
I have done the following steps
1) I have added an app to my itnuesAccount
2) I assigned the Bundle ID as net.myCompany.myGameCenter
3) I am using the same "net.myCompany.myGameCenter" as Bundle identifier in my info.plist
4) using the sample code provided by apple i added the authentication steps.
self.currentLeaderBoard= kEasyLeaderboardID;
self.currentScore= 0;
[super viewDidLoad];
if([GameCenterManager isGameCenterAvailable])
{
self.gameCenterManager= [[[GameCenterManager alloc] init] autorelease];
[self.gameCenterManager setDelegate: self];
[self.gameCenterManager authenticateLocalUser];
[self updateCurrentScore];
}
else
{
[self showAlertWithTitle: #"Game Center Support Required!"
message: #"The current device does not support Game Center, which this sample requires."];
}
I have tried putting the kEasyLeaderboardID value equal to the one that i placed myself upon creating the new leader board.
I tried the other one, that i defined at step2. "myComap"

Other people who are stuck with this problem to this date, like me..
Turned out because my devices were jailbroken =/ .. I read an answer somewhere on stackoverflow.com that jailbroken devices interpret the app as a "real-world" app, thus not discovering sandbox accounts ..
I restored my iPad, and got an iPod touch from a friend, and both worked painlessly .. (previously, I tried it on 3 jailbroken devices, for which none of them worked ..).

Ah my bad
the BundleId at the iTunes connect and the one in the info.plist have to be same
and the leaderboardID is used for for submitting and viewing the score.

Many reasons are there for this problem
Add your app on itunesconnect.apple.com
Fill all information (Make Sure your available/publish date)
Can enter dummy data, but bundle id and name must be original as your real game.(Can't change)
then put your leaderboard/Achivement id in your app.
If still you getting same message "Game Center is not recognized this game", check your availability date which you have enter while filling the information of your app on itunesconnect.apple.com. This date should not be after your current date.
If again you are getting same problem then upload this app on AppStore. (After checking you can reject this uploaded binary)

Well, I tried every tips but still got this warning!!
Finally, I solved it by creating a new App on iTunes Connect!! After you've added a new App for your project, you need to press "Manage Game Center" and choose a group. Then your game will be recognized by the game center, even you haven't added 'Leaderboards' or 'Achievements'.

Gah! This was driving me crazy. I had done everything right, had all the correct bundleIDs, certificates, etc., my app is already in the app store, but I was still getting this message. (iOS9.x, XCode 7.1)
Turns out that adding a single achievement in iTunesConnect made things work. I suspect I could have added a leaderboard, instead.
Basically, the message can also mean "while your app says it's Game Center capable, it doesn't actually have any GC content" and adding an achievement or leaderboard makes the game "recognized" by GC.

Seems on iOS 8 GameCenter sandbox is disabled by default. I met a similar problem and solved by enabling Game Center sandbox in Settings and re-logining.

Related

Sandbox Game Center Turn Event Notifications Not Consistent

I'm making a turn-based game, using the Game Center Turn-Based Gaming functionality. I'm using the simulator and my iPhone to test notifications of turn events. The results are very inconsistent. About 75% of the time when I make a move on the simulator and pass the turn I don't get any notifications on my iPhone. It seems that this function doesn't get called:
handleTurnEventForMatch:didBecomeActive:
I set the GKEventHandlerDelegate in the code that authenticates the local user and it seems to be set correctly. The fact that I get notifications once in a while suggests that this isn't where the problem lies.
Does anyone have any idea what could be the problem here? Could this be a problem with the Sandbox Game Center Server? Do they limit the amount of notifications you can send in a short amount of time or something like that?
Edit: I just found some posts of people experiencing the same problem, but no solution. No very recent posts though. Any updates?
Edit2: I also find that after a move, when I open the GKTurnBasedMatchmakerViewController on the other device it still says that it's the turn of the other player. When I close and reopen it the information is correct. Also, when I open the game GKTurnBasedMatchmakerViewController when it's still showing incorrect information, it does gives me the correct match object with the updated information. Could this be related in any way?
I thought I would share my solution with you, in the hopes that it is the same problem you are experiencing. As you can see from my comment to your question, I was having the same issue as you. It turned out that my settings in iTunes Connect were the culprit, unbeknownst to me. What you should check for is that you still have Game Center enabled in BOTH places that iTunes Connect requires. First, after going into "Manage my Apps" in iTunes Connect, select your app and on the right menu, and click "Manage Game Center". Make sure this is currently enabled. I would even recommend disabling it, and re-enabling it again for good measure.
In addition (and this is what I was missing), you must enable it in one more place. Go back to the previous screen when you first select the app. The top right is where you can select Manage Game Center, but we are looking on the bottom in the "Versions" section. Click the View Details button for your app, and make sure the Game Center button is enabled near the bottom. Again, I would disable and re-enable it here as well. Give it about 10 minutes, clear all your open turns and matches from the Game Center app (this might be an optional step), and build & run again. Hopefully, you will receive turn notifications properly again.
I got the same problem. However when i tested it on multiple devices it was working fine... May be some problem with the simulator

Application doesn't launch with location key after a significant location change

My application uses the core location also after the application terminates with the method startMonitoringSignificantLocationChanges in CLLocationManager class.
My application launches with a location key in iOS 5 and 6 in the method:
- (BOOL) application:application didFinishLaunchingWithOptions:launchOptions;
in AppDelegate class and everything works well.
But in iOS-7 betas the application doesn't launch with a location key after a significant location change.
Has anybody encountered this problem?
I tried it on a simulator and in the device.
Thanks for the help.
I have the same problem in my app, when the app was terminated by user from app switcher.
But it does launch with location key if it was terminated by OS for low memory or other reason.
It is the expected result from iOS7 unfortunately. An official apple response I got from one of their evangelists:
If a user swipes up in the app switcher then the OS will not launch
the app unless explicitly told to do so by the user. So no, SLC will
not be launching the app, nor will silent notifications. The only
thing that will launch the app at that point is the user tapping the
icon. The intention here is that the user has expressed their choice
of not having that app running any more for any reason, so we honor
that. In this situation, there's really nothing that you can do. The
next time the user launches the app you can let them know that some of
the data may be missing, although you really cannot tell whether
there's missing data or not (i.e. you might have been killed by the OS
in the background and the user may not have moved thereby not
triggering any SLC notifications). My suggestion would be to gather
the data you can within the policies of the OS and if the user has
manually killed the app then respect that wish and don't do anything.
By all means, feel free to file a bug report if this change in
behavior winds up causing problems for you or (especially) confusion
for your users.
Attach link to Apple DEV forums:
https://devforums.apple.com/message/882691#882691

xcode, running app on device cause red stamp to appear

I am not sure why, but every time I run this specific app on a iOS device a red stamp appear with the number 5. Can someone tell me why this is happening? This doesn't happened on the simulator.
This is used to communicate important information to the user of said app. This is set in your application by supplying an NSInteger to applicationIconBadgeNumber. For instance, Apple's App Store uses the overlay to inform a user that an update is available for X number of his/her app's. The Mail App uses it to inform the user that they have unread messages. Some applications add an applicationIconBadgeNumber to inform the user that they have received a Push Message.
Read more about it from Apple Developer Doc's
You can also turn this off for the application if you find it bothersome. Follow instructions in this Related Question.

iPhone 4 "device not registered" ... need help for backing up some app data

OK ... this is gonna be a long one. I have a iPhone 4 and I installed the iOS 5 Beta a couple of months ago. Last night when i reached for it to make a call ... I had to choose between disabling/enabling notifications ... and a few steps later ... I got a message:
"This device is not registered as part of the iPhone Developer Program. ##br####br## If you are a member of the Program, please register your device in the http://developer.apple.com/iphone/."
I plugged it into my Mac and I got an error that the software on the phone has expired and needs to be updated then while in itunes if i try to look for updates if tells me that there are no available updates and if i try to sync or back-up i get it tells me that a session cannot be started.
I could solve all of this with a restore (i guess) ... but I have some very important pictures taken with the camera+ app ... so they are not in the album (yet) ...
What can I do ?? I tried looking for file managers to get into the hone ... but I cannot get those pictures (being in a app) ...
Any ideas would be appreciated ... I'm desperate...
Same thing just heppened to me. I had to put my iPad in DFU mode and reset it with iTunes.
Some applications lost their data, some didn't. Don't know about Camera+ cause I don't have it installed.
By the way, pictures in the camera roll were not deleted. Videos were.
A restore would not help, you need to renew your provisioning profile (or create a new one). I saw that the new profiles expire in 12 months now, before it was always 3 months only.
Since the main concern seems to be rescuing the photos before wiping the phone, you might try using the "Image Capture" program on your Mac. This can be used to directly access camera memory cards and iPhone photos rather than importing with iPhoto if that's not working. I'm not sure how it will behave if the app does not store photos in the standard locations (i.e., the Camera Roll).
Well i tried to back up everything with iExplorer ... but I couldn't enter the apps folder ... so I gave up and put it in DFU and reset it with itunes ... c'est la vie ... from now on i'll back up more often ...

iPhone ad hoc distribution results in wrong orientation

When I created an ad-hoc provision to test my app remotely, the landscape setting malfunctions. The app is supposed to be landscape with the home button on the right. When I create an adhoc provision for one of my devices here, it works fine. One of my devices a coworker is using remotely, however, shows the app in portrait mode (so the right half is cut off). I suspected my plist info file wasn't carrying over but that wasn't it as I set the orientation value outright through code and it still didn't work. I'm a bit befuddled why it breaks on one device and not another. Any suggestions?
I discovered the cause!
Apparently, the misbehaving ipod touch had not been setup for mail. My app had invoked some in-app email functionality and induced the system dialog asking the user to setup mail. This in turn caused some trouble that apparently resulted in subviews being automatically rotated to the orientation of the app. I do not know if this is a problem specific to the foundation code of my engine, but hopefully if this trips up someone in the future, this can help.