@Naomi,
All you have to do is this:
[lua] system.openURL( “gamecenter” )[/lua]
I’ve also seen the code below posted, but despite what those posts said it does NOT take you directly to the leader boards.
[lua] system.openURL( “gamecenter:leaderboards” )[/lua]
BTW, you can test all of this without your app but opening Safari on your device and typing in “gamecenter” (without the quotes) in the URL.
Just saw that they updated the docs for the Corona gameNetwork. I had tried these things previously, but perhaps it works now:
[lua]local gameNetwork = require “gameNetwork”
–For GameCenter (iOS-only):
gameNetwork.init( “gamecenter”, initCallback )
gameNetwork.show( “leaderboards”, { leaderboard = {timeScope=“Week”}, listener=dismissCallback } )
gameNetwork.show( “achievements”, { listener=dismissCallback } )
gameNetwork.show( “friendRequest”, { message=“By my friend please”, playerIDs={ “G:194669300”, “G:1435127232” }, emailAddresses={ “me@me.com” }, listener=dismissCallback} )[/lua]
For more info look here:
http://developer.anscamobile.com/reference/index/gamenetwork/gamenetworkshow [import]uid: 16734 topic_id: 16641 reply_id: 81362[/import]