Hello,
I recently bought a Corona SDK license and my first game is nearly ready to be send to Apple.
I have a link to Game Center in my app which uses the following code, I found somewhere:
function gotoGameCenter()
local device = system.getInfo ( "environment" )
local appURL = "gamecenter:"
if device == "simulator" then
print ( "Cannot spawn this URL in the simulator" )
else
if testNetworkConnection() then
system.openURL ( appURL )
end
end
end
It works on the iPhone, but on iPad the game freezes. How can I fix this? Is the link different for iPad? I would rather have a popup window, like every other game center app, but I don't think corona supports this yet?
Thanks!