google-play-games

App not correctly configured to use google play game services

醉酒当歌 提交于 2019-11-27 21:45:38
问题 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

Top 5 scores from google leaderboard

走远了吗. 提交于 2019-11-27 21:04:43
问题 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

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

◇◆丶佛笑我妖孽 提交于 2019-11-27 10:58:20
问题 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

Failed to sign in. Please check your network connection and try again

南楼画角 提交于 2019-11-27 09:06:54
I am trying to make simple game with Google Play Games Services, but I failed to sign in to Google Play Games. I get this error : Failed to sign in. Please check your network connection and try again. I have MainActivity, and three fragmenets (MainFragment, GameFragment and ResultFragment). MainFragment is fragment for main menu, where use have button to click to start the game. Authorization? I have linked and authorized my game with SHA-1 in Google Play Developer Console. As I use Android Studio my package name looks something like: aplikacijezaandroid.thebuttonchallenge, and I added two app

Google Play Games

余生颓废 提交于 2019-11-27 07:33:21
问题 Good day everyone. I'm trying to implement Achievements in a game I'm developing. I already set everything on google play console, got the app-id, put in the manifest the following <meta-data android:name="com.google.android.gms.games.APP_ID" android:value="@string/app_id" /> and wrote the following method GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.getInstance(); int temp = googleApiAvailability.isGooglePlayServicesAvailable(this); if ( temp != 0) return;

onConnectionSuspended. How to test? When will this code be run?

心不动则不痛 提交于 2019-11-27 03:25:44
问题 public class MainActivity extends Activity implements GoogleApiClient.ConnectionCallbacks { @Override public void onConnectionSuspended(int i) { Log.d(TAG, "onConnectionSuspended() called. Trying to reconnect."); sendToast("onConnectionSuspended() called. Trying to reconnect."); mGoogleApiClient.connect(); } [...] } I've read the documentation: https://developer.android.com/reference/com/google/android/gms/common/api/GoogleApiClient.ConnectionCallbacks.html Based on what I read I did a simple

Testing Games Services using upload key instead of Google Play App signing key

帅比萌擦擦* 提交于 2019-11-26 23:41:56
问题 I currently have GPGS set up and working for my app. I'm having problems with some features while debugging my app using my upload key. I followed the steps here: https://stackoverflow.com/a/45270329/5434860 and am able to sign into Google while using the app signed with the secure "app signing key" that Google keeps on a secure server and am able to sign in using the app signed with my "upload key". (I have two OAuth 2.0 client IDs in there. One for production and one for debugging) My

Google Play Games Services achievement activity closing immediately

空扰寡人 提交于 2019-11-26 21:55:49
问题 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)

Google Play Games achievement unlocked popup not showing

寵の児 提交于 2019-11-26 21:23:51
问题 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. 回答1: 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

Failed to sign in. Please check your network connection and try again

房东的猫 提交于 2019-11-26 14:30:26
问题 I am trying to make simple game with Google Play Games Services, but I failed to sign in to Google Play Games. I get this error : Failed to sign in. Please check your network connection and try again. I have MainActivity, and three fragmenets (MainFragment, GameFragment and ResultFragment). MainFragment is fragment for main menu, where use have button to click to start the game. Authorization? I have linked and authorized my game with SHA-1 in Google Play Developer Console. As I use Android