GameCenter link doesn't work on iPad/ but does on iPhone...

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!

I've been also using it like system.openURL( "gamecenter:" ) and it worked fine on both iPhone4 & iPad1. So, I guess your problem lies somewhere else...

As far as I know (according to Carlos), actual Game Center support is coming soon! :)

views:1329 update:2011/10/18 8:54:01
corona forums © 2003-2011