gameNetwork.show() for iOS Game Center does not work, gameNetwork.request() does...

Hi,

I’m kind of stuck here, using build 840:

I implemented Game Center iOS leaderboards and all is running fine in the sandbox, scores get uploaded to leaderboards and are correctly entered with:

gameNetwork.request( "setHighScore", { localPlayerScore = { category = "MyLevelCategory01", value = addedWorldSecs }, listener=requestCallback } )  

Other sandboxed test players show up, all is (almost fine).

But when I try to show the leaderboards in my app with

gameNetwork.show( "leaderboards", { leaderboard = { category="MyLevelCategory01" }, listener=requestCallback })  

nothing happens, no leaderboards are shown.

Does anybody have an idea what might be wrong here?

Best,
Andreas
[import]uid: 133261 topic_id: 29245 reply_id: 329245[/import]

I don’t think Game Center lets you show with a specific leaderboard category. (I don’t think it worked when I tested it a long time ago.) In our documentation, we only have timeScope as a parameter.

gameNetwork.show( "leaderboards", { leaderboard = {timeScope="Week"}, listener=dismissCallback } )  

[import]uid: 7563 topic_id: 29245 reply_id: 117631[/import]

Thanks for the reply.

But even when taking out the category and only using timeScope gameNetwork.show() doesn’t show anything - but all the rest regarding iOS leaderboards is working fine in the sandbox.

I’ve no idea anymore why it just won’t work (because I must have all the other stuff set up correctly, otherwise the leaderboards wouldn’t show my correct ranks and points).

If you have any other idea, please feel free to share. :slight_smile:

Thanks,
Andreas
[import]uid: 133261 topic_id: 29245 reply_id: 118082[/import]

I don’t know what you mean by ‘not showing anything’. Do you mean the function does nothing (no-op), or does a Game Center view appear but there are no high scores available. If the latter, be aware that scores may take 24 hours to propagate (and the data you get from request may not be in sync with show). Also remember to cleanly log out of your real Game Center account before trying to log into the sandbox.

If the former, I would suggest taking a step back and look at the GCTapper example to see how that works or doesn’t work. [import]uid: 7563 topic_id: 29245 reply_id: 118084[/import]

The former… nothing appears.

Will try GCTapper example.

Thanks,
Andreas [import]uid: 133261 topic_id: 29245 reply_id: 118086[/import]