Search code examples
sandboxgame-center

GKPlayer loadPhotoForSize: withCompletionHandler: Sandbox Connection Error


I am trying to get avatars for game center friends using the loadPhotoForSize: withCompletionHandler: but it keeps throwing GKErrorDomain Code=3 "The requested operation could not be completed due to an error communicating with the server.

Does this method not work on Sandbox Game Center?


Solution

  • For me, it always gives this error if the player does not have a photo, but if I add a photo, the error goes away and it loads the photo correctly. I have only tested this in sandbox though, so I'm not sure if it works the same outside of sandbox.