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

Leaderboards does not shown? #14

Closed ptgamr closed 10 years ago

ptgamr commented 10 years ago

Hi there, Thanks you very much for this plugin. I'm able to display the Leaderboard screen, however, i didn't see any score on that board (it says: No Leaderboard), though i've submitted a couple of scores using different test accounts.

this.reportTimeToGameCenter = function(time) {
    var data = {
      score: time,
      leaderboardId: "xxx-xxx-xx"
    };
    if (window.gamecenter) {
      window.gamecenter.submitScore(function() {
        console.log("### Submit score success");
      }, function(message) {
        console.log("### Submit score error");
        console.log(message)
      }, data);
    }
  };

The code say "Submit score success".

Any help would be highly appreciate!

leecrossley commented 10 years ago

Things to check:

1) You have performed a successful authentication prior to submitting any scores. 2) You configured the leaderboard in iTunes Connect with the correct parameters.

Sometimes it does take a long time (especially with Sandbox accounts) for the results to show on the leaderboards.

Without access to your project, I'm unable to assist in your debugging.