leecrossley / cordova-plugin-game-center

Cordova / PhoneGap Game Center Plugin for Apache Cordova >= 3.0.0
http://ilee.co.uk
78 stars 29 forks source link

Leaderboard Set ID ignored in showLeaderboard method #3

Closed zeligmanos closed 10 years ago

zeligmanos commented 10 years ago

maybe this is by design, but if instead of the Leaderboard ID you specify the Leaderboardset ID (many games have a main board which is divided in different leaderboards per game mode difficulty), the view shows you the first sub set of the Leaderboard set instead of the main Leaderboard set view. And the user needs to manually navigate to the main menu.

To make it more clear: If you have a game that consists of 3 Levels of difficulty, "Easy", "Medium", "Hard" and you have created one leaderboard for each level and all 3 leaderboards are part of your Leaderboard Set, then currently there is no way to load the main generic board by submitting the Leaderboard Set Id. I tried but it failed.

This is not a top matter, but it would be nice to be able to load the main Leaderboard Set instead of forcing them to view the first sub set("Easy" leaderboard in our case)

Just a thought - maybe you could add, a showLeaderboardSet method or extend the existing method

leecrossley commented 10 years ago

Being able to specify a leaderboardSetId would be great, I'll investigate to see if there's a native view implementation to support it, I didn't see one in my first pass through the Apple documentation.

leecrossley commented 10 years ago

Shame, the identifier only supports a leaderboard, not a leaderboard set (using the GKGameCenterViewController).

The only way to get leaderboard set data would be without the context of a view controller (i.e. your Cordova/PhoneGap app would need to display the raw data passed back as json). This would be a separate feature.