Is there a way to send users directly to the Game Center from within a game?

Hi Corona SDK folk,

A lot of games have buttons that take a user directly to the Game Center (on iOS for example).

I would like to offer the same feature in my game using Corona SDK and was wondering if anybody knows how to do this if at all possible.

Try:  systemOpenURL(“gamecenter:”)

Rob

Hi Rob,

Thanks for the reply.

Yep, this does indeed open the Game Center app however what I was hoping for is that I could pass in my  app id (or equivalent) which would load up the Game Center leaderboard for that app.  I’ve seen lots of apps do this.  It slides up a panel showing the GC leaderboards for the app itself.

When the user taps the ‘Done’ label at the top, the panel slides down while still keeping the app open.

Shouldn’t gameNetwork.show(“leaderboards”) do that for you?   See: http://docs.coronalabs.com/api/library/gameNetwork/show.html

Rob

Try:  systemOpenURL(“gamecenter:”)

Rob

Hi Rob,

Thanks for the reply.

Yep, this does indeed open the Game Center app however what I was hoping for is that I could pass in my  app id (or equivalent) which would load up the Game Center leaderboard for that app.  I’ve seen lots of apps do this.  It slides up a panel showing the GC leaderboards for the app itself.

When the user taps the ‘Done’ label at the top, the panel slides down while still keeping the app open.

Shouldn’t gameNetwork.show(“leaderboards”) do that for you?   See: http://docs.coronalabs.com/api/library/gameNetwork/show.html

Rob