Game Center authentication doesn't work in iOS 8
Asked Answered
R

3

32

I am trying to implement Game Center in my game. I've tried it on the iOS 8 GM. I'm not able to get the authentication to work on device, but it works fine in the simulator. I'm using the code provided in Apple's documentation.

Do other people have the same issue? Any advice?

Revengeful answered 17/9, 2014 at 12:58 Comment(6)
Can you post the code you're using, or a link to it? What error message are you getting, if any?Liebknecht
it got this message : Domain=GKErrorDomain Code=15 "The requested operation could not be completed because this application is not recognized by Game Center." UserInfo=0x17d08ee0 {NSLocalizedDescription=The requested operation could not be completed because this application is not recognized by Game Center.}Revengeful
Have you tried other solutions for that error? #24045744Liebknecht
this is not very help full in my case, because i use Objective-C. I checked the return and everything is fine in my code, and it works in the simulator.Revengeful
Have you tried the second answer on the page I linked to? 'The solution (discovered through Apple's Dev forum) was to go to "Settings" on the device, and then into "Game Centre" and enable "Sandbox" under the developer section.'Liebknecht
Have you enabled Game Center in iTunes Connect?Pammy
T
98

Happened to me as well in iOS8enter image description here. Just need to enable Sandbox in Settings--> Game Center --> Sandbox.

Tricuspid answered 19/9, 2014 at 3:5 Comment(4)
Why is this happening? Because is not signed with AppStore provision? I have a build signed with release provision (ad-hoc), Game Center is enabled in itunesconnect, the AppID I use has Game Center enabled for dev and release. Is it going to work without Sandbox if we release the game?Shutout
I don't have the Sandbox option box in this setting. Do you know why?Fp
@Fp Sounds like you might be using the simulator? The simulator is always sandboxed.Kaunas
I am using the iOS 9 beta. Maybe this is a developer preview version so the sandbox is also always enabled.Fp
A
6

In order to make it works you must be sure that:

  1. The SandBox Mode it's Enable on your device
  2. Your bundle id on Xcode must be the same bundle id on Itunes Connect
  3. You have to enable the Game center on itunes connect: Itunes Connect Game Center

enter image description here

Astoria answered 27/11, 2014 at 22:50 Comment(0)
B
2
  1. Go to itunesconnect website (https://itunesconnect.apple.com)
  2. Open Your app. (in My apps section)
  3. Find "Game Center" tab. Click it.
  4. Then click on switch "Enable/Disabled"
Bigler answered 19/10, 2014 at 18:47 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.