I’m working on some local networking in an app. One device is a server and the other is a client. Because I can assume both are iOS with Game Center, I am using the playerid to log onto the local server. The server says something like: <Game Center alias> would like to join your server and it shows the appropriate picture.
At least, it’s supposed to, which leads to my problem.
I am using two test game center accounts with different pictures for this test. Each device gets it’s own id and alias and sends it to the other device. Because Corona SDK doesn’t actually give me the player image file, I have to request the image at the destination device using the forwarded id.
The problem is, Game Center won’t send the picture. It says, “this application is not recognized by Game Center”.
My test app can log into Game Center on both devices, so… something recognizes it. It is “sandboxed” but I don’t fully understand what Apple thinks “sandboxed” means. I understand the concept but not the parameters of the implementation especially as it regards to Game Center.
Is this a problem that will just go away when I publish? Isn’t that unreasonable to expect me to ship with an untested feature? Can Corona just let me get the player image on the sending device so I can send it to the other device? I realize that I could just have the player store a duplicate image to be used with the game, but that seems needlessly fiddly. The whole point of using Game Center is to allow the player to use their established gaming identity.
To summarize, both devices can log into Game Center, both devices connect successfully, Game Center won’t send the other player’s image because it says the application is not recognized by Game Center.
Any advice is appreciated.