android-basic-samples icon indicating copy to clipboard operation
android-basic-samples copied to clipboard

Google Play Game Services getLeaderboardIntent with collection not working

Open uriel-frankel opened this issue 7 years ago • 7 comments

The method: public abstract Intent getLeaderboardIntent (GoogleApiClient apiClient, String leaderboardId, int timeSpan, int collection)

inside Leaderboards interface.

descirbed here: (https://developers.google.com/android/reference/com/google/android/gms/games/leaderboard/Leaderboards.html#getLeaderboardIntent(com.google.android.gms.common.api.GoogleApiClient, java.lang.String, int, int))

it has a variable called collection. It supposed to do this:

"The collection to show by default. Valid values are COLLECTION_PUBLIC or COLLECTION_SOCIAL."

But it just doesn't work.

here are some stackoverflow.com questions about it:

http://stackoverflow.com/questions/37415206/how-to-open-all-by-default-instead-of-social-in-google-leaderboard

uriel-frankel avatar Oct 29 '16 20:10 uriel-frankel

@claywilkinson Can you help us?

uriel-frankel avatar Dec 08 '16 22:12 uriel-frankel

What do you mean it "doesn't work"? Does it not return an intent? Is the intent wrong? Can you share a log?

claywilkinson avatar Dec 21 '16 21:12 claywilkinson

I use the flag COLLECTION_PUBLIC but it always shows the COLLECTION_SOCIAL.

uriel-frankel avatar Dec 25 '16 12:12 uriel-frankel

@claywilkinson please try to look into what i wrote. it sends back the intent but the flag COLLECTION_PUBLIC not working

uriel-frankel avatar Jan 12 '17 07:01 uriel-frankel

anyone find a solution to this ?

CValeron avatar Apr 06 '17 17:04 CValeron

Take a look on the last comment: (http://stackoverflow.com/questions/37415206/how-to-open-all-by-default-instead-of-social-in-google-leaderboard/37418418?noredirect=1#comment70606003_37418418)

The comment is from January, but the fix isn't there yet. I think of connecting a manager in Google to make it work.

uriel-frankel avatar Apr 09 '17 07:04 uriel-frankel

Looks like this will never get fixed. Issue has been around for years. Alternative is to create your own leaderboard.

DooblyNoobly avatar Oct 27 '17 03:10 DooblyNoobly