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
Related
I have a issue when using Game Service of Google. I use Leaderboard and Achievement in my game. But when I run direct from PC to Device, all things is normal.
But when I export apk file and upload it on Goole Play, I got a issue in below image.
Please check the given quality checklist which is presented with minimum requirements, best practices, and good-to-have enhancements to deliver the best possible product to your players.
In addition to that, since nothing shows in logcat, you may also try going through these references and/or tutorial:
Troubleshooting Issues in Your Android Game
Google Play Game Services: Leaderboards
I did a little Unity game and I wanted to include on it Google Play Services with some achievements. I have created the achievements and so on. However, seems that it is not working, mainly the first point is that is not logging correctly to Google Play Services. Here you have the code I'm using:
http://s27.postimg.org/9epuz81sz/codigo_conexion.png
Then, I have noted, something suspicious, seems that the app in Google Play is not asking for Internet access (you can check it here):
https://play.google.com/store/apps/details?id=com.marcos.spaceshooter
So I guess that somehow I must say in some place of Unity that I need this permission. Right?
But, there is also another strange point, if I look in Google Play Games. The game is not showing the Achievements. However, everything is published, you can check it in Google Play games if you download the game.
Anyone knows how to fix this issue?
lot of thanks in advance
From your code it looks that you're trying to login and then activate the plugin. That's wrong reverse order. Try placing InitializeInstance and Activate functions in Start() function before Social.localUser.Authenticated(...). If it doesn't help, please post Logcat logs.
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.
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!
Don't know if it's ok to ask this question here, but I didn't know where to ask it...
I have made an app with an ad from AdMob. It works just fine, showing up in the app and everything. The problem is when I want to link my app in the AdMob interface, my app is not showing when I search the market.
But I know that it's actually on the market because I can find it when searching on play.google.com.
This is what I want to do. It says Link your app!
Anyone else had this problem and know how to fix it?
Thanks!
It is this part that I have a problem with:
At the red arrow, where it says "Find your app in the search..." My app is not showing in the search result, but I know that it is on the market!
You need to wait a little bit more after publishing your app because AdMob indexes Play store and iTunes about every 48h.
My app took 2+ days to show up in Admob. Wait, it will show up.
If your app name is a bit too common (like mine was "memes") - I would recommend to search by developer name. Admob will try to list all apps of that developer.
Instead of APP name if you provide Developer name ,then it will show of list all APPs by the developer.Then select your required APP [which was not listed when searched].
Enjoy !!!!
I've been able to resolve it today by pasting the full AppStore URL to that search field.
If your App is published and available in the US region, this should probably work. Note that it may take up to 24 hours for the app to be visible on AppStore after releasing.
Make sure you publish the app for release. If your app is still in Beta it will not show up.
If you face issue linking your app and it takes more than 2 weeks you can contact google adMob team on google groups
Group name : Google Mobile Ads SDK Developers
Make sure you post your app details on the above group. My app was pending for 55 days and once I raised they have added my app in 24 hours.
I have to contacted the Google Mobile Ads SDK Developers group and they quickly fixed the issue for me. Now everything works!
Tip: If you didn't find your app by the name, try the following options:
the app's AppStore URL, for example: https://apps.apple.com/us/app/spotify-discover-new-music/id324684580
the app's store ID, for example: id324684580
the publisher name, for example: Spotify Ltd.
I had the same issue. I tried searching using the App Name, it did not show. I also tried entering the full App store url and it did not work either. So to resolve it, I did this:
Went to App Store Connect -> General -> App Information -> View on App Store
Copied only the last 2 part of the URL https://apps.apple.com/us/app/COPIED_THE_REST_FROM_HERE.
Went to AdMob and pasted the section of the URL that looks something like this: spotify-discover-new-music/id324684580.
After that it worked. If the App was just released, please wait atleast 24 hours so the App listing in the store is updated.