An error occured reporting the score: Error Domain=GKErrorDomain Code=3 "The requested operation could not be completed due to an error communicating with the server." UserInfo=0x1f98d0 {NSUnderlyingError=0x1f2c90 "The operation couldn’t be completed. status = 5053", NSLocalizedDescription=The requested operation could not be completed due to an error communicating with the server.
There are couple of things you might forgot to do before you actually run your code. You can direct run your code with the code supplied by apple developer center.
Below are the list of the things might be causing this error:
1) The category name should exactly match to your itunesconnect category name. You have to use, leaderboard category ID . You should not use, Category reference name.
2) Make sure you have 4.1 version of iOS. And, try to run the game on the device rather than, simulator. I heard that game center sandbox is not working properly some times with the simulator.
3) Check weather you have configured the targets properly or not. On the left hand side in your xCode, you can see Groups & Files category. If go below in that solution explorer, you can see "Targets" module. Expand "Targets" and double click on the name which has your game name followed by the device type. [ Ex. myGameName - iPad ].
Double click on that and select properties module in the dialog which popped up.
In that properties, make sure you have valid identifier name . Ex. com.sampleCompany.sampleGame
4) Project - Edit Active Target - iOS Deployment Target and change its version to 3.0 . After this, select your device type to , 4.1 .
Please let me know if you have any question or concerns :)
Happy coding
Pradeep Daram.
pradeepfriend2000@gmail.com
Hi Pradeep,
ReplyDeleteIam trying to get connected with Game center from my app, I configured in iTunes Connect, and I followed above steps also even it is giving an error as the same(The requested operation could not be completed due to an error communicating with the server),Could you help me to resolve this issue. Thanks in advance...
Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info. iOS Developers
ReplyDelete