android-basic-samples
android-basic-samples copied to clipboard
Google Play Game Services getLeaderboardIntent with collection not working
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
@claywilkinson Can you help us?
What do you mean it "doesn't work"? Does it not return an intent? Is the intent wrong? Can you share a log?
I use the flag COLLECTION_PUBLIC but it always shows the COLLECTION_SOCIAL.
@claywilkinson please try to look into what i wrote. it sends back the intent but the flag COLLECTION_PUBLIC not working
anyone find a solution to this ?
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.
Looks like this will never get fixed. Issue has been around for years. Alternative is to create your own leaderboard.