google-play-games

Google APIs for Android is missing Games.getGamesAuthToken

泄露秘密 提交于 2019-11-30 21:11:12
问题 The online reference for Google APIs for Android , shows a public method summary for the Games class which includes: static PendingResult<Games.GetTokenResult> getGamesAuthToken(GoogleApiClient apiClient) But the latest release available (8.4.0) does not include this method. I use this to get the APIs: dependencies { compile 'com.google.android.gms:play-services:8.4.0' } Where is Games.getGamesAuthToken? 回答1: This is actually a documentation problem. getGamesAuthToken() has been removed

How can i check if user sign's out from games services default view?

若如初见. 提交于 2019-11-30 07:41:46
I integrated google games services in my game, including Leaderboards and achievements. If the user opens the leaderboard or achievement activity, he has the possibility to sign out from the settings in the right upper corner. How can I check if the user is actually signed in? getGamesClient.isConnected() is still true, although the user logged out from the google view. If I'm clicking the logout button (which is still there, becaus gamesClient is still connected) I get an SecurityException: 08-16 11:01:21.262 14288-14288/? E/AndroidRuntime: FATAL EXCEPTION: main java.lang.SecurityException at

android play games services is incorrectly configured. anyone know how to fix?

走远了吗. 提交于 2019-11-30 07:07:19
问题 I have a weird bug that's cropped up. My app works perfectly when I sign it with the android debug key store. But when I sign it with my own key, users are unable to sign in. I get the message "The application is incorrectly configured. Check the package name and signing cerificate match the client id in the developer console" I have done this and have added a new client I'd with the correct certificate and package name but it still doesn't seem to be working. Anyone know what else I could

How to give access to Google Play Developer Console Game services page to other accounts?

爷,独闯天下 提交于 2019-11-29 20:03:37
问题 We have a game on Google play created with a developer account and then we have admin access to that game trough our personal accounts (we are multiple developers). Recently, I have added achievements to that game using the Game Services page, the problem now is that we can only access to that game through my personal account or the developer account (the account owner) but not the other personal accounts. Anyone knows if it is possible to give permissions to other users to access the Game

How to get rank from Google Play game service's leaderboard?

眉间皱痕 提交于 2019-11-29 17:12:05
I'm working on a big application and I have to take the player's rank from the Google Play services' leaderboard. The leaderboard works well. I've already found the right method but I don't know how I'm supposed to use it: private void loadRankOfLeaderBoard() { Games.Leaderboards.loadCurrentPlayerLeaderboardScore(mGoogleApiClient, getResources().getString(R.string.leaderboard_leaderboard), LeaderboardVariant.TIME_SPAN_ALL_TIME, LeaderboardVariant.COLLECTION_PUBLIC).setResultCallback(new ResultCallback<Leaderboards.LoadPlayerScoreResult>() { @Override public void onResult(final Leaderboards

Google game services sign in issue (fails first attempt, successful second)

99封情书 提交于 2019-11-29 14:11:57
Currently trying to connect my game (that uses libgdx) to Google Game Services to enable leaderboard/achievements etc and seeing some strange behaviour. Problem When I first tap on "Sign in", it displays the dialog to choose your google account, then play services permission circles dialog, then the big loading circle. After a while, it displays a dialog with the following error Unknown issue with Google Play services If I tap 'Ok' to dismiss that error dialog, then tap on the "Sign in" button again, I immediately get successfully logged in. After this, I can see the leaderboard etc. Details

GoogleApiClient.isConnected() return always false

邮差的信 提交于 2019-11-29 12:42:34
I'm trying to implement leaderboard in my game. I wrote this code: GoogleApiClient mGoogleApiClient; mGoogleApiClient = new GoogleApiClient.Builder(this) .addApi(Drive.API) .addScope(Drive.SCOPE_FILE) .build(); mGoogleApiClient.connect(); //.... while(!mGoogleApiClient.isConnected())Log.d("","NO CONNECTED"); Games.Leaderboards.submitScore(mGoogleApiClient, "MY_LEADERBOARD_ID",newscore); Why mGoogleApiClient.isConnected() returns always false? EDIT1: Ok, now it works (I have changed Drive.API with Games.API and Drive.SCOPE_FILE with Games.SCOPE_GAME ) but when I call submitScore() even if it's

Android games leaderboard broken while testing

时光总嘲笑我的痴心妄想 提交于 2019-11-29 12:26:14
I have successfully integrated the Google Games API in my app, and now I can see my leaderboard and achievements as described here and here respectively. However, when trying to submit a score using this code: Games.Leaderboards.submitScore(mGoogleApiClient, getString(R.string.play_console_leaderboard_id), 100); for some reason the leaderboard stops appearing. Actually it starts loading, and then directly disappears. This post seems to describe the same issue, however there is no solution posted. I know that it has to do with the submitScore because when I create a new leaderboard, I can

How can i check if user sign's out from games services default view?

随声附和 提交于 2019-11-29 10:56:36
问题 I integrated google games services in my game, including Leaderboards and achievements. If the user opens the leaderboard or achievement activity, he has the possibility to sign out from the settings in the right upper corner. How can I check if the user is actually signed in? getGamesClient.isConnected() is still true, although the user logged out from the google view. If I'm clicking the logout button (which is still there, becaus gamesClient is still connected) I get an SecurityException:

Google Play Game Services Multi-Player Device Orientation change kicks user out of room

风格不统一 提交于 2019-11-29 03:04:27
问题 I'm working on an app which has just one activity (which extends BaseGameActivity ), and switch between multiple fragments (much like Google's sample code states). I'm testing a multi-player game right now, on 2 separate devices. Both users can successfully log-in, send messages to each other, etc. However, the instant one user rotates their device, they get kicked out of the room. I think this makes sense because the activity is getting destroyed and recreated. But what I don't understand is