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! [import]uid: 82552 topic_id: 16058 reply_id: 316058[/import]

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! :slight_smile: [import]uid: 10478 topic_id: 16058 reply_id: 59685[/import]