Issue in leaderboard

From a developer

I am calling this code automatically on game over, to save score to leaderboard:

var scoreObj = {
table: ‘arcticPongHighscore’,
points: score
};
ID.GameAPI.Leaderboards.save(scoreObj, function () {console.log(‘Save successful’)});

And also I am calling this code after “SHOW LEADERBOARD” button click:

var listOptions = {
table: “arcticPongHighscore”
};
ID.GameAPI.Leaderboards.list(listOptions);

Do you know whats wrong with this? Or do you have some clue for me to make it work? thanks

What does the console say?

The key “target-densitydpi” is not supported.

[Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help, check https://xhr.spec.whatwg.org/.

here is our game, you can check it there:
http://storage.id.net/Ankit/html5/idnet-arcticpong_v3/idnet-arcticpong/gamefiles/

I don’t see an issue except the score save is never called. All seems ok with list scores.

okay, I found out where was the problem, user has to be logged in to save score to your leaderboard, and its working now.

thanks anyway

2 Likes

My leaderboard dont work ad no matter what score i get it doesn’t seem to show me on the leaderboard

Y8 Games