play-games-plugin-for-unity icon indicating copy to clipboard operation
play-games-plugin-for-unity copied to clipboard

The returned LeaderboardScoreData from calling LoadScores with LeaderboardStart.PlayerCentered does NOT set prevPageToken or nextPageToken!

Open exzizt opened this issue 4 years ago • 19 comments

The returned LeaderboardScoreData from calling LoadScores with LeaderboardStart.PlayerCentered does NOT set PrevPageToken or NextPageToken (they are both null)! I tested this using a leaderboard with 25 entries. I called LoadScores using a rank of 3 (to return 3 scores centred on the player) and it returned scores 1, 2, and 3. It should have set the NextPageToken so I could retrieve the following scores (e.g., 4, 6, and 6).

Edit: It appears that it never sets the next/previous pages if the returned scores contain the score of rank 1. If the returned scores contains other ranks (e.g., 9-15), it will return the next/previous pages to access 8-1 and 16-whatever.

exzizt avatar Oct 02 '19 22:10 exzizt

What version are you using?

ozdemir08 avatar Oct 04 '19 08:10 ozdemir08

What version are you using?

The latest stable release, v0.9.64.

exzizt avatar Oct 04 '19 18:10 exzizt

What version are you using?

Any updates on this? Is it being looked into and is there a workaround?

exzizt avatar Oct 07 '19 21:10 exzizt

@olehkuznetsov @ozdemir08 Any progress on this issue? It's been 3 weeks since I raised this issue (and since release since it's been a bug). Here's a pic I made that hopefully helps illustrate the problem some more. Let me know if you have any questions. https://i.ibb.co/cvppJZk/lbbug.png

exzizt avatar Oct 22 '19 23:10 exzizt

We are investigating it, it's not clear for now if this issue is in Unity plugin or in Java Games API. If it can be fixed in Unity plugin then fix will be sooner.

olehkuznetsov avatar Oct 25 '19 10:10 olehkuznetsov

We are investigating it, it's not clear for now if this issue is in Unity plugin or in Java Games API. If it can be fixed in Unity plugin then fix will be sooner.

Alright, good luck with the investigation! I have a hunch that it's an issue with the API.

exzizt avatar Oct 25 '19 18:10 exzizt

Still not working properly :(

besideL avatar Nov 04 '19 09:11 besideL

Still not working properly :(

Are you experiencing the same issue that I am?

exzizt avatar Nov 04 '19 18:11 exzizt

Does the issue still exist? I lost my motivation to make a custom leaderboard because of this bug 😒

ovieira avatar Nov 14 '19 15:11 ovieira

Does the issue still exist? I lost my motivation to make a custom leaderboard because of this bug 😒

I'm assuming so, unfortunately. Once they notify us here we know it'll be fixed.

exzizt avatar Nov 17 '19 05:11 exzizt

@ozdemir08 Any updates on this issue?...

exzizt avatar Nov 17 '19 05:11 exzizt

@ozdemir08 Any answers yet?

exzizt avatar Jan 02 '20 05:01 exzizt

So far, I tested it with Smoke test and saw similar problems with you. After some investigation, I saw that it's not just about plugin or SDK but beyond it. That's why I'm passing this along to wider team and we will have wider investigations about it.

ozdemir08 avatar Jan 03 '20 18:01 ozdemir08

So far, I tested it with Smoke test and saw similar problems with you. After some investigation, I saw that it's not just about plugin or SDK but beyond it. That's why I'm passing this along to wider team and we will have wider investigations about it.

What was the result of this investigation? I'm very curious!

exzizt avatar Mar 18 '20 04:03 exzizt

@ozdemir08 Has there been any progress with this issue? This issue makes it practically impossible to make a fun and engaging custom leaderboard with GPGS.

exzizt avatar Jun 06 '20 19:06 exzizt

This Problem Still Exists after 2 Years, That's Unbelievable

aryanshdev avatar Feb 15 '22 15:02 aryanshdev

Hello. I confirm this issue is reproduced with version 0.11.01.

AleksLaz avatar Jun 16 '22 12:06 AleksLaz

Interesting I don't see any condition before generating tokens in AndroidClient.cs

If data is loaded it is converted here AndroidClient.cs#L802

And the tokens are just generated during the conversion without any conditions here

olehkuznetsov avatar Jun 16 '22 13:06 olehkuznetsov

So, in our test it seems tokens are not null. Do you have an issue with results returned?

olehkuznetsov avatar Jun 16 '22 14:06 olehkuznetsov