I've been implementing OpenFeint today and everything was going well until I noticed what I think is a bug.
I have a leaderboard setup with the option "Allow worse scores" checked - so any score the user uploads should add a new score each time.
Currently when I submit a score, regardless of the score, the users score is always replaced with the new value instead of creating a new score.
I've tried this in my own code and also the sample app they provide - both with the same results, the user just having one score regardless.
I just want to make sure I'm not missing anything obvious - in the mean time I have submitted a ticket to their support desk and awaiting a reply.
Oh, and it's not an 'aggregate' leaderboard either - I did see someone else having a similar problem and this was the case for them.
Code:
long scoreValue = 1234; // or whatever score
Score s = new Score(scoreValue, null); // Second parameter is null to indicate that custom display text is not used.
Leaderboard l = new Leaderboard(getString(R.string.leaderboard_id));
s.submitTo(l, new Score.SubmitToCB() {
@Override public void onSuccess(boolean newHighScore) {
GameModeBase.this.setResult(Activity.RESULT_OK);
}
@Override public void onFailure(String exceptionMessage) {
Toast.makeText(GameModeBase.this, "Error (" + exceptionMessage + ") posting score.", Toast.LENGTH_SHORT).show();
GameModeBase.this.setResult(Activity.RESULT_CANCELED);
}
});
Thanks, Ricky