google-play-games

How to make google play games optional?

我与影子孤独终老i 提交于 2019-12-23 02:52:20
问题 I am integrating Google Play Games with my Android game. During startup, if a user doesn't have Google Play Games, it shows a dialog with: This app requires the latest version of Google play games. Is there a way to make it optional? I would like users to see a dialog where they have the option to install it. But it shouldn't explicitly say required , since it isn't. 回答1: I integrated a check to test whether or not Google Play Services is installed and only start the service if it is

How can I avoid user being prompted a second time for Google account selection?

元气小坏坏 提交于 2019-12-22 13:56:17
问题 I'm developing and Android app with Google Play Games Services and I've followed the getting started guide by importing the BaseGameUtils as a module into my IntelliJ project. This is now working fine except that whenever I open an activity which inherits BaseGameActivity and call beginUserInitiatedSignIn() , the user is prompted to select which Google account to connect with (if more than one is present at the phone). Now this would be fine if it weren't for the fact that in my app, the user

Test Google Play Games on app signed with upload key

笑着哭i 提交于 2019-12-22 09:48:08
问题 I am trying to test the functionality of google play games on the app I am currently building with Unity. I have opted for the Google's app signing and have access to only the upload Keystore. Is there a way to connect to google play games with a version of the app signed by the upload key so that I don't have to deploy my app everytime I want to test it? 回答1: Though it's not the ideal workflow, you can upload an APK (signed with your upload key) to an internal or closed test track, and then

Changing the certificate fingerprint for an existing application

两盒软妹~` 提交于 2019-12-22 09:36:29
问题 I have an existing application that i published in to google play. All was fine, until I have changed a computer and my sha1 fingerprint changed. Is there a possible way to change the sha1 for an existing application in google play developer console? if not, how can I deal with it? Thank you! 回答1: If you remember, when you publish the app first time on your older computer, you generate a key.keystore in order to sign the apk file and publish to google play. You need to have the same file.

G+ Login Immediately Logs Me out 3x Using g-signin Button

喜夏-厌秋 提交于 2019-12-22 04:30:16
问题 My code in HEAD is: <meta name="google-signin-clientid" content="XXXXXXX.apps.googleusercontent.com" /> <meta name="google-signin-cookiepolicy" content="single_host_origin" /> <meta name="google-signin-approvalprompt" content="auto" /> <meta name="google-signin-callback" content="signinCallback" /> <meta name="google-signin-scope" content="https://www.googleapis.com/auth/games" /> Here is my button code: <span id="signinButton"><span class="g-signin"></span></span> Here is the JavaScript:

Google Play Sign in for Unity

馋奶兔 提交于 2019-12-22 01:42:05
问题 I am trying to integrate Google play Services so that i can have achievements and leader boards in my game.I have tried the following code - public Text myText; void Awake() { PlayGamesPlatform.Activate(); } public void SignIN() { Social.localUser.Authenticate((bool Success) => { if (Success) { myText.text = "Yayy!!"; } else { myText.text = "Not AGAIN!!"; } }); } public void SignOUT() { PlayGamesPlatform.Instance.SignOut(); if (Social.localUser.authenticated == false) { myText.text = "SIGNED

android turn-based multiplayer custom invite screen

微笑、不失礼 提交于 2019-12-21 12:59:32
问题 I am trying to create a custom UI screen for the "player picker UI" that comes with google play services for turn based multiplayer. The default one can be seen here: https://developers.google.com/games/services/android/realtimeMultiplayer?hl=fr-CH#invite_players_option That page(which is real time I know) mentions how to use the default UI and that a custom UI can be used, but does not mention the actual methods to customize the look. I'm not a fan of the huge icons, and would rather a

Can't run RealTimeRoom Google-Play-Games iOS ButtonClicker2000 sample on real device

徘徊边缘 提交于 2019-12-21 05:44:09
问题 I'm trying to run Google-Play-Games iOS sample ButtonClicker2000 project on Real Device. (quickstart: https://developers.google.com/games/services/ios/quickstart downloads: https://developers.google.com/games/services/downloads/) The process of signing in to GooglePlayService does not show any error. I'm sure that my google console project setted up correctly. I don't have any problem when launching on emulator BUT on a real device (it doesn't matter on iphone or ipad) when i click on quick

Reset achievements/leaderboard from my Android application

僤鯓⒐⒋嵵緔 提交于 2019-12-20 20:38:13
问题 Can I reset my achievements/leaderboard result from my Android application that is used with Google Play Game Services? 回答1: Yes, this is possible from test accounts. It’s a bit tricky so here some example code. Add this in your manifest: <uses-permission android:name="android.permission.GET_ACCOUNTS" /> <uses-permission android:name="android.permission.INTERNET" /> And here is the actual code to be executed in the application. Added in the activity that is based on BaseGameActivity. public

android - import - with developers google com games

自闭症网瘾萝莉.ら 提交于 2019-12-20 01:57:09
问题 I'm follow the guide here https://developers.google.com/games. I did all the insturction in step 1 ("Step 1: Download the sample app") but the project isn't compile. after I imported the google-play-services-lib project and the BaseGameUtils project, their R.java file appear in gen directory. In the lines: import com.google.android.gms.games.Player; import com.google.example.games.basegameutils.BaseGameActivity; I get the errors : The import com.google.android.gms.games cannot be resolved The