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
Well I've decided to go for Scoreloop - purely on the popularity of it. Swarm looks a good option but it's currently in beta and that worries me a little.
For anyone wondering, OpenFeint support haven't got back to me and I've read several posts before mentioning their support isn't the best. Their website was littered with issues yesterday too so I've decided against them. Pity really, it was going quite well.
Update: I got a reply and it seems it's a misunderstanding on my part and perhaps some discrepancies in their documentation:
So, it looks like you only ever have one score in the leaderboard - makes sense.
Further to this, I'm still opting for Scoreloop and I can confirm this behaves the same regarding one score per user but it offers a lot more functionality and does seem to respond much quicker than OpenFeint did for me.