iOS9 “This game is not recognized by game center.”
Asked Answered
C

6

22

I am having trouble getting game center to work with my app.

Whenever I try to authenticate the user it comes back with the following error:

"The requested operation could not be completed because this application is not recognized by Game Center." 

Most of my internet searches have yielded the response "Make sure that Sandbox is enabled" but with the new iOS 9 there is no sandbox anymore. I also have made sure that my Bundle ID and all of my certificates are correct so I don't think that is the problem. Thanks in advance!

Michael

Coagulate answered 3/12, 2015 at 0:32 Comment(0)
C
25

Adding a leaderboard fixed the problem even though I wasn't using the leaderboard.

Coagulate answered 3/12, 2015 at 4:57 Comment(2)
Also, adding an achievement helped me. Simply saying, Game Center is enabled automatically if you actually use something of it.Sassan
To be specific, in my case it is adding Leaderboard through appstoreconnect portal, not through the code/appNauplius
T
19

Did you enable Game Center in the project's capabilities?

Have you added the app in iTunesConnect?

Have you uploaded a build to iTunesConnect? If so, a good check to validate the that your setup is correct is to go to Activity | All Builds | ~your current build~, then scroll down to Required Capabilities. Does it list "gamekit" in that section?

The latest answer to the game is not recognized by game center suggests that if everything else is correct, just adding an achievement (or maybe a leaderboard) cleared the issue.

Edit: since writing this, the problem has appeared a few times for me. Creating a dummy leaderboard solved it the first time. Creating yet another solved it the second time. The third time it happened, just changing which of the dummy leaderboards was the default solved the problem.

Edit 2: Based on How to list all available GKTurnBasedMatches for a player?, it appears that in some cases, at least using Swift, you don't even get the "unrecognized" error. Operations just silently fail until you create a leaderboard.

Technician answered 3/12, 2015 at 1:7 Comment(6)
Do I need to upload a build to Itunes Connect? In the past I have not and it still worked but did this change with the new iOS 9 setup?Coagulate
as far as I recall, it's not necessary. But if you do, then you can use my suggestion above to see if iTunesConnect thinks game center is enabled or not. Just another option for determining if you have the config correct or not.Technician
All I needed to do was add an achievement. I was trying with a blank game center in ITC but would get that error.Manamanacle
This struck me today, too. Adding a leaderboard in iTunesConnect solved it. Ugh.Technician
Going into the "Capabilities" tab showed a missing entry in my plist file that probably wasn't helping anything -- thanks for highlighting that as a place to look.Doctrine
Changing the default leaderboard worked for me too. Thanks for saving me hours of work!Blah
A
14

There is a toggle switch in appstoreconnect.

In your "Prepare for submission" tab, toggle this switch:

switch

Attach answered 19/9, 2018 at 19:28 Comment(1)
Now it is a checkbox, but still same behaviour.Ytterbium
T
2

I solved this by creating a new leaderboard in iTunes Connect

Transpire answered 16/5, 2016 at 3:10 Comment(0)
Z
0

Has happened to me when building from the enterprise target of the app instead of the release. The two bundle IDs are different so Game Center won't work because only the release bundle ID is registered with iTunes Connect (for Game Center).

Zachariah answered 7/11, 2017 at 20:6 Comment(0)
T
0

I just had this problem because we used a different bundle identifier in development than the appstore bundle identifier..

Tamaratamarack answered 13/1, 2022 at 7:21 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.