I have made a game, and when playing it the achievements show as a pop up in game when awarded. And it appears to be working correctly, they're iterating when they're meant to, they're being awarded for completing set tasks as they're meant to. But on the screen in "Play Games", it doesn't display them, and when you click on an achievement in the pop up, it doesn't let you view them.
Like so:
I want it to appear like:
What am I missing? I've looked all over the developer console and can't find anything to make this change.
From the Google Play Games Service documentation, Make sure that you follow the instruction here that to show a player's achievements, call getAchievementsIntent() to get an Intent to create the default achievements UI. Your game can then bring up the UI by calling startActivityForResult
startActivityForResult(Games.Achievements.getAchievementsIntent(mGoogleApiClient),
REQUEST_ACHIEVEMENTS);
In the following snippet, REQUEST_ACHIEVEMENTS is an arbitrary integer used as the request code.
Also from this SO question, make sure you publish the game in the developer console, to see the achievements in the activity
If this options adidn't work on you, then maybe AlexeyGorovoy is correct.
This might happen because you haven't publish your game in Game Services.
First publish game in google service which is situated in Google Play Developer Console.
Then your achievements tab will be created under your game in Play Games.
Related
I was trying to setup Google Play Leaderboards in my app, by following the instructions on googles website.
I created a Leaderboard for my app (not submitted yet).
Downloaded the "Android Basic Samples" code from Github, and copied the four source files "BaseGameActivity","BaseGameUtils","GameHelper","GameHelperUtils".
Updated my AndroidManifest.xml, strings.xml, ids.xml and build.gradle
In my app activity, I changed the class to extend BaseGameActivity.
On launching my app, my app immediately tries to sign into google play or something (it shows a Google Play Games Logo "connecting to"), and then shows a message
"Create a profile. Unfortunately, Google+ couldn't set up your
profile. Try again later."
If I click on "Done", then Google Play Games prompts me to choose an account. So I click on my developer account (the other option being to create an account), and the same thing happens again (It shows the google now message)!
I've never created an Android App before, or used Google Play before, so all this is new to me. How should I fix this ?
EDIT: If I just click outside the "Google+" dialogue box, then it disappears and my game starts. Likewise in the loop if I press "cancel" when it asks me to choose an account, my game starts. But I can't test if leaderboards is working then! How do I fix this ? Why do I need a google+ profile ?
EDIT: And why is it having trouble setting one up ? Is there some setting I need to use to disable Google plus? I am using Android 4.4.4 and android-10, Google Play Services 7.5.0
You should try logging in to your g+ profile before starting the game. The problem is not with your app, but with how the leader boards are authenticated. Hence why g+ is needed. : )
Edit: If the above fails, I would try to recreate another g+ profile. And if that fails, contact the play team at: https://support.google.com/googleplay#topic=3364260&contact=1
Best of luck!
I can only imagine there must be a way for me to invoke some kind of GUI that will show all the matches a player has going on, whose turn it is, who they're playing etc. Is there such a GUI call for Google Play Game Services or do I really need to work this all out manually by loading matches and created my own GUI from the data? It's proving to be a lot of work and I feel like it just HAS to be wasted effort. Game Center has it...
From Developing a Turn-based Multiplayer Game in Android found in the Google Play Game Services docs.
Once a player has signed in to your game, the player may receive invitations to join a turn-based match created by another player. To save coding time and provide users with a consistent UI for responding to match invitations across applications, you can use the default match inbox UI provided by the SDK. To launch the default match inbox UI, call getInboxIntent() to get an Intent; then call startActivityForResult() and pass in that Intent.
It appears there is a built in GUI. I don't have an app to try it out but you can get more information here I hope that helps.
Hi i am trying to upload my Android app in the private channel of the Google Play store, this will be first app for our organization. We didn't upload any apps yet but we are trying to upload our first app in private Channel. I didn't find how to get start with Google play private channel. I go through this distribute android apps in your organization but am a bit confuse about what the first step is. Can anybody tell me how to get started?
My first step is through this screen. So where is "Click More controls > Other Google Services, click filter to open the filter pane, and deselect the Show top featured services checkbox"..
Maybe it's too late, but I just did it for the first time now, and I can guide you :)
I aggree with you : Google support is a bit confusing.
First of all, from the main dashboard, go to Apps, then Additional Google services. Then, at the top right of the screen, click the second button (a kind of filter icon), between "+" and "?", and uncheck in the left panel that appears "Show top featured services".
Then, on the same screen, scroll and make sure Google Play Developer Console and Google Play for work are activated.
Once done, go back to the main dashboard, and then go to Device Management. On the next screen click Mobile on the left panel.
There, click Device management settings and check Allow users to access Google Play Private Channel if you want your users are just able to download app, or the second checkbox (update Goole Play Private Channel) if you want they can upload custom apps too.
You can set this property for your whole domain, or for each "organizationnal unit", as Google says.
Then, you have to create an Android dev account with one of your Google Apps account. I mean : if you had a personnal dev account (with a gmail address, or anything else, you won't be able to be a dev in your organization), so beware !
The publication process will be the same, except one thing : in the "pricing/availability" menu in the Dev console, you will have to check a tiny checkbox just after the amazing list of countries, to warn Google you want this app to be just visible for users of your GApp domain.
An other pretty cool feature that may be relevant in this usecase is Android For Work, coupled with Google Play For Work. I can help you too about it, but it's another subject :)
Google has provided step by step instructions of doing this. We can create users in the private domain and assign different privileges to the users, based on which, they can just download the app or upload apps to the private channel. The following link gives detailed information on this.
[enter link description here][1]
https://support.google.com/a/answer/2494992?hl=en
I'm currently showing a leaderboard in my game using Google Play Games. Now I want to add an "Invite" button in order to engage more users to the game, the idea is when you press the button, show a popup with all the friends in your circles, select one or more and then send the invites.
I've looked through the API but can't find anything. Weird thing is that this feature appears in the landing page of Google Play Services (https://developers.google.com/games/services/):
Help players ask friends to take specific action in a game, like "challenge", "attack", or "accept gift".
So maybe I'm missing something. Is this possible to do? How?
The invitations that you mention are for multiplayer games only.
Whats the point of inviting to another person to a leaderboard?
Maybe what you want instead is to post the fact that you have unlocked an achievement, let's say on google+, for that I will sugest the following aproach:
https://developers.google.com/+/mobile/android/share/
Also, hold for the 4.1, I believe P2P wont be the only way to do multiplayer games and other stuff may be added too.
I know how to invoke Google Play from my application from the code. However, it starts the main page on Google Play from my application. From that the user may want to go to add rating, but is there a more direct way?
Like, can I have in my app a button 'Hated it' which will result in 1 star being posted on Google Play for my app and a button 'Loved it' which will result in 5 stars?
What I did in my App was to show the user a dialog after the app was started a few times, say 15 times or something like that (If your users use the app a lot, it would be more probably that they rate it good, because they are using the app, so do not ask them in the first days of use). What the dialog shows is a text where you ask the user to rate the app, ignore, etc. If they press "rate" and they are linked to the google play they may rate the app, because they already decided to rate it pressing the button from your dialog. I do not know there is a "direct" method to do this like you are thinking. Try my method instead.
See my example Code Example
Android applications have to be rated by the user inside the Google Play Store. The best you can do is to redirect the user to your application's Google Play page.
Therefore, it's not possible for you to implement a simple way for the user to grant you a 1 to 5 star rating directly inside your application.