google-play-games

Android In-App and Virtual Currency?

早过忘川 提交于 2019-12-11 10:44:17
问题 I am making the planifiacion of a game for android and some research. But i get stuck when i have to deal with the Virtual Currency (actually i dont know if this is what i need). The user need to be able to purchase some virtual currency (in my case beans) and with those beans purchase upgrades or whatever he wants or needs. I see that Facebook supports this right away with his API, but Google Play (altough they dont explain how to do it) appears to not support this functionallity. how do i

Android: Get username in Google Play Games

可紊 提交于 2019-12-11 09:36:05
问题 I'm trying to develop a game where the user after sign in in Play Games is forwarded to another Activity . But on this second Activity I don't know how to get his username . Do I have to Sign in again (this time on the second Activity ) to obtain it? I tried with GoogleSignIn.getClient(this, GoogleSignInOptions.DEFAULT_GAMES_SIGN_IN).toString(); but it returns something like com.google.candroid.gms.auth.api.signin@ and I what I want is his username in Play games , not this. I was reading this

Google Play Games Service - Login Failed (OAUTH2: UNREGISTERED_ON_API_CONSOLE)

喜你入骨 提交于 2019-12-11 09:29:23
问题 At the moment I'm trying to implement Google Play Games Services Sign In to my android app. I already had a lot of trouble so far, but it seems I', coming closer to it actually working. The Problem: When i press login, the sign-in function returns the following error: 02-18 12:31:51.122 5524-21263/? W/Auth: [GetToken] GetToken failed with status code: UNREGISTERED_ON_API_CONSOLE 02-18 12:31:51.128 5206-5723/? E/TokenRequestor: You have wrong OAuth2 related configurations, please check.

How to make ANE that accesses GooglePlay GameServices

我的梦境 提交于 2019-12-11 08:49:43
问题 I develop AdobeAIR App for Android. So, I try to make ANE(ActionScript Native Extensions)that accesses GooglePlay GameServices. But, it is now working because of the following problem. [Error] 07-22 11:22:44.976: W/Bundle(24987): Key com.google.android.gms.games.APP_ID expected String but value was a java.lang.Integer. The default value <null> was returned. 07-22 11:22:44.991: W/Bundle(24987): Attempt to cast generated internal exception: 07-22 11:22:44.991: W/Bundle(24987): java.lang

How to load scores for current user from multiple leaderboard using Google Play Games services?

对着背影说爱祢 提交于 2019-12-11 08:39:11
问题 On load of my game I want to receive all scores for all levels (I have 22 currently) of my game for the current player. I am doing this: @Override public void onSignInSucceeded() { new Thread(new Runnable() { @Override public void run() { for (int i = 1; i < count; ++i) score = getScoreGPGS(LEVEL_LIST(i).leaderBoardID); // somehow use this score } }).start(); } And where public long getScoreGPGS(String leaderBoardID) { try { PendingResult<Leaderboards.LoadPlayerScoreResult> result; result =

Why are Google Play games icons not shown in Play Store?

早过忘川 提交于 2019-12-11 04:02:48
问题 I have made a small game just to test my development skills. I integrated Google Play Game Services, like leaderboards and achievements. Why are the logos for leaderboards and achievements not shown in the play store? I'm talking about the logos that indicate, that this app supports the Google Game Services, so games know it. Where can I enable the setting for that? 回答1: There is a minimum number of players needed to have signed in and been playing your game before the logos will appear.

Importing games.request

跟風遠走 提交于 2019-12-11 03:24:23
问题 I'm using Android Studio and tried to import Google Play Game Services into my application. Imported BaseGameUtils folder in the libraries and now I have an error at the following line, in the GameHelper class: import com.google.android.gms.games.request.GameRequest; More exactly, it says "cannot resolve symbol: request." I'm pretty new to android development and android studio so sorry if it's a lousy question. Edit 1 Ok, so i did what Scott Barta told me, but still got a "cannot resolve

Google Player Game Service Error: Can't build the sample game

人盡茶涼 提交于 2019-12-11 01:55:30
问题 I can't build the sample game TypeANumberChallenge provided by Google (see GitHub). Got the following error message: The project was not built since its build path is incomplete. Cannot find the class file for com.google.android.gms.games.GamesClient. Fix the build path then try building this project The type com.google.android.gms.games.GamesClient cannot be resolved. It is indirectly referenced from required .class files MainActivity.java /TypeANumber/src/com/kerrywei/games/tanc I did

Send notification when inviting to multiplayer game (Game Services)

空扰寡人 提交于 2019-12-10 21:28:58
问题 I’m playing around with Google Play Game Services and multiplayer support. If I invite a player with this service, is it possible to send a notification to the receiver automatically? When I use the demo project nothing like this occurs. The documentation however says: If the signed-in player accepts an invitation from the notification area on the Android status bar, your app should accept the invitation and go directly to the game screen (skipping the main menu). This doesn’t explicit says

Unexpected response code 403 for https://www.googleapis.com/games/v1/players/xxxxx LibGDX Android

无人久伴 提交于 2019-12-10 18:07:46
问题 I'm making a Android game with LibGDX and I want to use the Google Play Game Services API but I can't get it working. Here's what happens when I try to login: 06-12 20:08:47.745: E/Volley(4046): [253] tk.a: Unexpected response code 403 for https://www.googleapis.com/games/v1/players/115171141636978128288 06-12 20:08:47.846: E/SignInIntentService(4046): Access Not Configured. Please use Google Developers Console to activate the API for your project. 06-12 20:08:47.846: E/SignInIntentService