So I'm trying to implement Google Games Leaderboards into an AS3 game. As near as I can tell, game services is all set up appropriately. Achievements and in-app purchases are already functioning properly. I have all my leaderboard set up in the developer console and I don't see anything obvious wrong with them. I know the leaderboard IDs have been properly implemented into my code. According to the console, I've even managed to successfully submit some scores to said leaderboards.
However my problem is the leaderboards are not displaying in-app. The leaderboard interface comes up, but simply says "No leaderboards for this game". I can't for the life of me figure out why. The only thing I can think of is maybe they just aren't available yet, though I made them over 24 hours ago at this point. There are 96 of them, which is obviously quite a few (though, documentation says I can have as many as 100).
So do I just have to wait? Did I make a booboo somewhere? Is there a giant red button I forgot to click in the dev console somewhere? Can you even test leaderboards before publishing the game? I'm so confused...
If achievements are working but leaderboards are not, here's my guess: did you add leaderboards to the developer console after publishing and forgot to publish the changes? After publishing, every time you change something, you have to hit "Publish Changes" to make those changes effective.
Open play.google.com/apps/publish
Click the game settings tab (joystick icon)
Click on your game
Go to the "Publishing" tab (on the left)
It should say "There are no changes to be published. Everything is published." If it says otherwise, you may need to click on the "Publish Changes" button!
Related
I am trying to submit my almost finished game (first app) to the alpha testing but after hours of research I still canĀ“t.
Inside the Google Play Development console / Game services in the "Testing" tab I filled my alpha testers list but after that there is only 2 switches, there is no "APK" tab like the tutorial said and no "upload" button.
In the "publish" tab it says "ready to publish" which is odd since I haven't uploaded any APKs yet, I wonder what will it publish if I click it. I don't want make mistakes here since published apps can't be deleted as far as I know.
Finally the weirdest thing is that in the upper tab "all applications" it says "you don't have applications" while in the "linked apps" tab the game is in the list.
What am I doing wrong? I know that for someone who already publish an app this would be extremely obvious but not for me please help.
What I understand is that you are trying to upload an alpha testing APK, while you are looking into gaming services testing (which will test gaming serviecs if you play using any of the mail ids you listed there)
To upload alpha APK, see in the picture, in APK tab, you will get 'alpha testing' tab, scrolling that down, you can find a button to upload your APK.
PS - even if you make slight changes in your app listing description, 'publish' button get's activated. So nothing to worry about there.
I'm a newbie in android programming, having started a few months ago only. I've always found an answer to my questions up to now, but this particular one seems not to exist. I may be missing something obiouvs but I try to ask anyway.
I'm dealing with google play services implementation in the game I'm developing. I set everything up following step by step more than one guide. They were similar and the resulting code was the same. And it's working fine: I can log in and connect to API's with GoogleApiClient. I set up the achievements and leaderboards in the console and I can even update them and unlock achievements.
The problem is I can't see any of my achievements or leaderboards in the Play Games app by Google. From the console they result published but in the app, if I click on my game, I'm only able to see the description and "other people using this game"; achievements and leaderboards section are missing and I can't figure out how to make them appear.
I want to underline that if I call inside my app the leaderboards or achievements activity, provided by the google play services library itself, it works. The intent is launched and achievements show up (same thing for leaderboards). So I thought the problem was outside my game code.
So, what am I mistaking? Do I have to change something else in the developer console? Do I have to add something else I didn't notice?
Thanks in advance to everyone who will help me.
This is normal behavior, it wont show up in the Google Play app until you have published your game.
I have faced the same problem and it showed up as expected when the app went live.
So, finally here the answer to that issue. I directly wrote an email to Google support. I was told, they have a kind of activity threshold for each app. Once you hit that, you will see 'MyAchievements' and/or 'Leaderboard' tabs in GooglePlayService app.
So my app Hardy the Game finally got at least the achievements activated.
Obviously you have to publish the game and do every step required as explained in Google Play Game Services.
Of course you can immediately use your achievements/leaderboards programmatically. Actually, you should do!
For getting those extra tabs just wait and get your app more activity. In my case I developed all achievements and started to share with my friends.
Hope that helped!
Good Programming
I launched an app on google play store this week. The app uses Google Play Games Leaderboard and Achievements APIs. Should the app page in play store app not show these icons/badges like it does in other apps that use these APIs? Do i need to enable it anywhere?
These are the icons/badges I'm referring to (image below). How do i add/enable these? Do i need to do anything in the app apk to get these?
Just had a chat with the Google Play support team. They said that it gets enabled automatically after a certain threshold (a few hundred users from what they said) is reached. So basically no additional configuration/setup is required to start showing the icons. I'm just going to wait a few days and see if it pops up. Will update.
I added Google PlayServices at beginning of the year, so its active almost a year.
Currently 330 users are in the leaderboard of my game. But that symbols still not appeared;-(
In general what I can see is that the initial requested acceptance of the PlayServices in my game, is distracting a lot of people. From 10 people who download the game only 3 will register the PlayServices.
Some of the other might even directly deinstall it, not noticing that my game can also used without.
A lot of people dont want it either because of privacy or because they expecting unwanted data traffic.
For a game I'm developing, I'm setting up Google Play services. My game only needs leaderboards, so no achievements.
However, when setting up the game in Google Play, it told me that I needed to add at least 5 achievements.
Now, I can simply not link to the achievements popup in the game, but I'm not sure if that's a good thing to do. Maybe the achievements are visible somewhere else that I'm not aware of.
Any advice? (I could off course add the achievements, but I want to keep things simple, and if I can avoid an extra button to show the achievements, I'd prefer doing that).
Thanks!
I just added 5 dummy achievements. I don't think there is away around it. The achievements won't show up unless you make them show up.
ps.
Publish Android App with leaderboards and no achievements
I've finally made a game that I am happy to push on the android store and I have everything down packed except for a few minor details like implementing the leader board and achievements.
Now, I've followed the tutorial on the video produced by Bruno and Dan and have been able to sign in with multiple devices and multiple accounts, but nothing else seems to work.
I'm using unity and the plugin / sdk that was provided and told to download.
The things I am having trouble with is even getting the achievements and leader boards. I am using this code which was in the video:
// post score 12345 to leaderboard ID "Cfji293fjsie_QA")
Social.ReportScore(12345, "(I have my leader board code here but am masking it for safety)", (bool success) => {
// handle success or failure
});
In that code I have it basically setup for the moment with testing that if a GUI.Button is pushed, the player will send the score 12345 to the leader board. Then once that is done, there is another button that can open the ShowLeaderBoardUI function that was also given in the video.
Once in the game on my phone, the scores wont show up, or the leader board itself once pressing the button either.
Am I doing something wrong? I'm not sure if I need to include anything else and I'm not even inputting my variables of score into the leader board yet for testing purposes.
If you need anymore information let me know.
I have the game in Beta on the Google Play Store with the application saying "Published", the Game Services say "Published". I have linked the app to the Game Services with the correct OUATH 2.0, with the correct App ID. All achievements and leader boards say "Published". Both of my email accounts are linked to the Game Services.
I'm just not sure where I have gone wrong and why I can't even ShowLeaderboardUI or even post a score.
Also is there a way to view the leader boards and achievements on a computer as apposed to a phone? or do I need to be on the phone to check them?
Thanks,
Chris
EDIT: Forgot to include that I can sign in and have all of the regular Google Play sign in graphics and it's signs in fine.
EDIT2: Forgot to mention that the game is in Beta in the Google Play Store.
For what it's worth. I wasn't able to get Google's plugin to work, so I deleted everything google related in my project and installed this.
https://github.com/faizann/UnityGPGPlugin
Authentication works now, as well as reporting scores to the leaderboard. So it would appear that the issue actually lies with something in Google's plugin and not my setup on the developer console.
Add the following statement before Authenticating the local user.
PlayGamesPlatform.Activate();
this will solve your issue
I have had the same problem as the OP and tried to solve it for days.
I could signin normally, but when calling ShowLeaderboardUI, ShowAchievementsUI or pretty much anything else, it did nothing.
What solved my issue was removing Facebook and Playfab plugins I had installed on my project. I reinstalled Google Play Games plugin and everything went fine.