google-play-games

App not correctly configured to use google play game services

人走茶凉 提交于 2019-11-29 01:58:14
I'm using the BaseGameActivity class to connect to google play games services. The problem is that somehow authentication doesn't work. I'm searching the web for a solutions for hours but didn't find anything what helps me solving the problem. When I start the BaseGameActivity I get the following output in the LogCat: 03-19 14:22:36.126: W/GameHelper(15312): **** 03-19 14:22:36.126: W/GameHelper(15312): **** 03-19 14:22:36.126: W/GameHelper(15312): **** APP NOT CORRECTLY CONFIGURED TO USE GOOGLE PLAY GAME SERVICES 03-19 14:22:36.126: W/GameHelper(15312): **** This is usually caused by one of

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

眉间皱痕 提交于 2019-11-29 01:28:40
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 try or if there is a known issue? Ok all here is how I managed to fix it after a lot of trial and error.

Top 5 scores from google leaderboard

时光总嘲笑我的痴心妄想 提交于 2019-11-28 22:07:25
My requirement is to get top 5 scores from leaderboard and display it in my app. There is a method loadTopScores but it shows the scores in its own UI i guess. mGamesClint.loadTopScores(new OnLeaderboardScoresLoadedListener() { public void onLeaderboardScoresLoaded(int arg0, LeaderboardBuffer arg1, LeaderboardScoreBuffer arg2) { // TODO Auto-generated method stub } }, LEADERBOARD_ID,LeaderboardVariant.TIME_SPAN_ALL_TIME , LeaderboardVariant.COLLECTION_PUBLIC, 5, true); So is there any way I can get individual data like Name and score..? Name 1 : Name of the top scorer 1 score 1 : score of the

Google Play Services - Sign in - Client ID debug vs release

半世苍凉 提交于 2019-11-28 17:59:11
After properly implementing Google Play Services in my first game now it is time for the second. I'm stuck on message "There is no linked app associated with this client ID” ..... I have properly configured things for debug and release. When i run app from Eclipse it works ( debug key is used and i can sign in ). When i create a signed apk and install it on device i get "There is no linked app associated with this client ID”. In Google API I have 2 client IDs ( debug and release , also tried to remove one of them - no luck ) I Have tried adding / removing testing accounts ;/ I have created

Calling Google Play Game Services from a fragment

谁说胖子不能爱 提交于 2019-11-28 12:49:25
I have implemented some Google Play Game Services features in my Android app as a separate Activity and I am now trying to rewrite my code as an (Action Bar Sherlock) fragment. I am using the supplied GameHelper code in my fragment. An auto sign in works correctly. A user initiated sign in fails because the StartResolutionForResult call in GameHelper returns to the Activity's onActivityResult rather than to the fragment. I have verified all this by using Log.D . My understanding of this is limited - what should I do to fix this ? I have tried passing a different context but the

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

心不动则不痛 提交于 2019-11-28 07:42:54
问题 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"

GoogleApiClient.isConnected() return always false

浪子不回头ぞ 提交于 2019-11-28 06:50:50
问题 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

Android games leaderboard broken while testing

依然范特西╮ 提交于 2019-11-28 05:35:54
问题 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

Google Play Games Services achievement activity closing immediately

别来无恙 提交于 2019-11-28 01:33:14
I'm updating my game to the new Google Play Serviced library, leaderboards and achievements were already working flawlessly, but now when I try to open the achievement activity, it immediately closes without showing any exception in logcat. I'm logged in with my google account, which is correctly configured as a test user. public void gameServicesGetAchievements() { if (gameHelper == null) return; Intent i = Games.Achievements.getAchievementsIntent(gameHelper.getApiClient()); ((Activity) ctx).startActivityForResult(i, REQUEST_CODE_ACHIEVEMENTS); } The activity opens, but closes immediately

Google Play Games achievement unlocked popup not showing

橙三吉。 提交于 2019-11-27 23:08:58
I'm unlocking achievement using this simple method from developers docs: Games.Achievements.unlock(getApiClient(), "my_achievement_id"); Achievement unlocks, but no popup shows up. There is also no popup when logged in to Google Play Games - which is connected. I was struggling with this for a while, that's why decided to share it on stackoverflow. I've described a simple fix to this problem on my developer's blog . Here is the short version: Just add a view to the layouts you want to display achievements on like this: <FrameLayout android:id="@+id/gps_popup" android:layout_width="wrap_content