Achievements in Google Play Games is not working - android

I created a small game on android with libgdx (runner game) which is working fine.
So I decided to add some achievements to it.
My application is published, when I go to Services and API, I see "this application use google play's services...".
So I go in "Game services" menu. My game is here with the API :"API Google+, Google Play Game Services i.e Google Play Game Management ".
In the associated application menu, I have my application linked.
When I open the game for the first time, it ask me to connect with my google account, so the sign-in method work fine. After the connection, I see my profile pictures with my play games level.
But when I want to unlock achievements, nothing append.
I don't think the problem is in the code because the connection run fine and the game is not crashing, there is just nothing append and the game continue.
Maybe I miss something on the configuration on the play console because when I open the game in Google Play Games, I see my games but there is no achievements/leaderboard see pictures :
Achievements in dev console
No achievement in play games
To see if the sync is okay, I modified the game's description and go back to the play games, the description was modified.
So why my achievements are not on the play game service and due to that I'm not able to unlock them ?
I really don't understand what I missed...
Thanks in advance for your help.
Edit : Also on the API explorer, when I want to execute a simple games.achievementDefinitions.list to get the list of achievements in my application, I get an error :
Telling me that the API is not enabled but it is !

I finally found where was the mistake.
Thanks to this sample :
https://github.com/playgameservices/android-basic-samples
under BasicSamples=>TrivialQuest2.
When I created google api client, I forget to add the Games API,
so I just added .addApi(Games.API).addScope(Games.SCOPE_GAMES)
Now my game works fine and I can unlock/get achievement for a player :D
I will now try to add leaderboard :)

Related

Achievements not showing in Google Play Games

I'm working on a Unity game and am using the Google Play Games Services, specifically the Leaderboards and the Achievements.
I'm using the play-games-plugin-for-unity: https://github.com/playgameservices/play-games-plugin-for-unity
Currently my game is published as beta test.
While the achievements do seem to work, as in, they can be unlocked, and the popup appears correctly and I can see my progress from within the game.
But I don't receive and experience points for them.
And when I look at my game in the Play Games App, there's no info about any achievements, as if there are none.
So it's basically the same problem as this: Achievements not showing in Google Play Games App
Except in his case he had a OAuth2 Client IDs mismatch, but mine seem to be correct.
I was wondering if it's maybe just because my game hasn't been made public yet? (as it's still in Beta)
Edit: I've released it publicly now, and the achievements are still not showing, so that's definately not the cause.
Any help much appreciated.

Is there a way to check to see which achievements have been unlocked in unity?

So i'm updating my android and ios application using the unity game engine. I want to add unlockables based on which achievements the user has unlocked. I have about 20 or so achievements. I can't find anywhere a method to check to see if a particular achievement has been unlocked or not. Im using Gamecenter for ios and Google Play Games for android.
The Social class should provide what you need:
https://docs.unity3d.com/ScriptReference/Social.html
most particularly https://docs.unity3d.com/ScriptReference/Social.LoadAchievements.html

Android Leaderboard Playstore Game Services

Is it somehow possible to set the public leaderboard to be the default one.
I am talking about the option when you show your leaderboard where is like
Social - All
I cannot find any option in Playstore's Game Services.
At this stage the API getLeaderboardIntent() does not allow you to set the filter for the leaderboard at launch. It is probably a workflow that is enforced by Google to promote adding friends to your G+ circles, but it makes for a really crappy experience when the player is the entry in their social leaderboard.
Hopefully this is made more flexible in a future update to play services.

Reseting Google game services achievements through oauth playground for an android application?

Is it possible to reset achievements for an android application using oauth playground? I have used it in the past to reset achievements for a web application but don't know how to do it for an android application. I have the android application google game services configuration setup and running but would like to give a method to testers for reseting their achievements out of the android application.
Thanks in advance.
I'm actually going to recommend you try something completely different. The Play Games team just released a new set of management tools that provides a web interface for you to interact with the games management REST APIs, including being able to reset your achievements. You can find them here, along with some instructions about how to use them.
Please note that as part of the setup process, you're going to need to go to the Play Developer Console, jump into your game, create a linked web app, and then use that linked web app's Client ID as the Client ID you enter into the management tools.

Show Google Game Services support in Google Play

I have released a game that uses Google Game Services on Google Play. Everything works, but when I look on my game in Google Play it doesn't show that it's using Game Services. Some other games do (like Riptide GP for instance). What is controlling this?
Implementing the Google Play Game Services features is not sufficient, your users have to use the service for you to get the badges.
Let me quote from this video from Google I/O 2013: Practical Android Games Development
http://youtu.be/ZbQWf7C5ymU?t=23m39s
"As you get more users you will get badges. [...] However, they are not just given out because you put them in the config, and we don't snoop your APK to see if you are making API calls from there. We verify how much the feature is being used and if you meet certain threshold we give you a badge. So you need to actually integrate it, it is not a token thing that you can put there to get more eyeballs in the store."

Categories

Resources