ios gamecenter show single leaderboard

Hello.

I am not able to show a single leaderboard with the gamecenter plugin, I always end up in the root leaderboard screen, showing all of my leaderboards.

The documentation states that I could use the category parameter:

“category” — The leaderboard to show.

But I have no success with the following code:

gameNetwork.show( "leaderboards", { leaderboard = {category = leaderboardId}, listener=leaderboardListener } )

Any idea what might be the problem?

Best,

Felix

Still having this problem.

Anybody any idea?

Best,

Felix

Have you set the default leaderboard in iTunes Connect? If you’ve not already done so, navigate to My Apps --> [Your App] --> Features --> Game Center. Once there, you’ll notice a section called ‘Leaderboards’. All the leaderboards you’ve set up for the app so far are listed there in a table. Look for the column called ‘Default’ in that table. Hover over the leaderboard you would like to mark as default and the text ‘Make Default’ should appear in blue. Click on it and save your changes. I guess that should do it.

Hello Prathap,

thank you for your reply.

I just got around having a look at this topic again.

I tested it with a game where I have only one leaderboard.

I checked and this leaderboard is set to default but I always end up in the root.

(Where I also can rate and like the game).

Not sure what I am doing wrong. Might this be related to the iOS version? On my test device (iPad Mini) runs iOS 9.3.5.

Best,

Felix

Still having this problem.

Anybody any idea?

Best,

Felix

Have you set the default leaderboard in iTunes Connect? If you’ve not already done so, navigate to My Apps --> [Your App] --> Features --> Game Center. Once there, you’ll notice a section called ‘Leaderboards’. All the leaderboards you’ve set up for the app so far are listed there in a table. Look for the column called ‘Default’ in that table. Hover over the leaderboard you would like to mark as default and the text ‘Make Default’ should appear in blue. Click on it and save your changes. I guess that should do it.

Hello Prathap,

thank you for your reply.

I just got around having a look at this topic again.

I tested it with a game where I have only one leaderboard.

I checked and this leaderboard is set to default but I always end up in the root.

(Where I also can rate and like the game).

Not sure what I am doing wrong. Might this be related to the iOS version? On my test device (iPad Mini) runs iOS 9.3.5.

Best,

Felix