google-play-games

android turn-based multiplayer custom invite screen

↘锁芯ラ 提交于 2019-12-04 05:16:40
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 simple list. I have been trying to research this out for a few days, and have found nothing. I am looking

Is it possible to access Google Play Game Services API with service account?

纵然是瞬间 提交于 2019-12-04 04:44:12
问题 I've created the game thru Google Play Developer Console (it is ready for testing , but not published yet). Two service accounts are added there as testers - myappid@appspot.gserviceaccount.com (Google App Engine service account) and 64436212345-enq9gkd1abcdefghjec2kha39je5ojsc@developer.gserviceaccount.com (manually created service account, it was created before an access to Google Play Game Services API was given). First one is used for production GAE environment, second one is for

Play games loadLeaderboardMetadata() returns outdated data

我们两清 提交于 2019-12-04 03:57:13
问题 I'm working on an app with Play Game Services, and I'm making a custom UI to display the list of leaderboards with only the score and the ranking of the player as dynamic data. Then, when the user clicks on the score or ranking, he will be taken to the leaderboard default UI to display this particular leaderboard in details. In other words: I'm making a custom UI for leadeboards list, but I use default UI for displaying a specific leaderboard. I use loadLeaderboardMetadata() method to get the

GameHelper crashes on onConnectionFailed()

我怕爱的太早我们不能终老 提交于 2019-12-04 00:57:34
问题 I've got the following crash in GameHelper.java : [main] java.lang.NullPointerException at com.google.android.gms.common.ConnectionResult.startResolutionForResult(Unknown Source) at com.google.example.games.basegameutils.GameHelper.resolveConnectionResult(GameHelper.java:752) at com.google.example.games.basegameutils.GameHelper.onConnectionFailed(GameHelper.java:729) The only reason I think that could happen is if mActivity == null at GameHelper.java:752 : mConnectionResult

How can I get my own Participant ID in a TurnBasedMatch?

半城伤御伤魂 提交于 2019-12-03 21:56:53
I know I can obtain all Participants with TurnBasedMatch.getParticipants(), and I know I can get the player's Participant id by TurnBasedMatch.getPendingParticipantId() when it is the player's turn, but how can I get the Participant object or id if it isn't the player's turn? I could of course save it locally when it is my turn and read it later, but is there a better way? public String myParticipantID(){ return match.getParticipantId(Games.Players.getCurrentPlayer(gac).getPlayerId()); } Where gac is your GoogleApiClient object Me and my friend developed a Chess game using this, he used java

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

巧了我就是萌 提交于 2019-12-03 20:45:14
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 match button i get this error (at the bottom): INFO: Auth operation started: SIGN IN NFO: Auth

Google Play Games Services Alert: “Detected incorrect implementation”

孤人 提交于 2019-12-03 15:55:52
I recently received the following alert for my game in the Google Play Developer Console: Detected incorrect implementation Your game has incorrectly implemented the following Play Games services: Achievements. It provides a link to a help page but the page only provides the following information: Detected incorrect implementation This game has implemented invitations but doesn't allow users to join a match from an invitation. This approach is discouraged because it could result in a poor user experience. This does not help me because it mentions invitations (which my app does not use) instead

Android API IsConnected returning TRUE after Signing Out

試著忘記壹切 提交于 2019-12-03 13:22:00
I am developing a game for Android using Google Play Game Services, using Xamarin. I am doing my testing using a Genymotion Android Emulator. I have run into an issue that appears to be a bug in either Google Play or Xamarin's implementation. If I sign out of a Google account , calls to the IGoogleApiClient.IsConnected() continue to return true (even though I have clearly just signed out). If I then attempt to use that API object, I will get exceptions like: java.lang.SecurityException: Not signed in when calling API For example, the follow code results in the above exception if executed after

Reset achievements/leaderboard from my Android application

无人久伴 提交于 2019-12-03 07:02:21
Can I reset my achievements/leaderboard result from my Android application that is used with Google Play Game Services? 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 void resetAchievements() { if( isSignedIn() ) { String accountName = getGamesClient().getCurrentAccountName()

Android - “Connecting to Google Play” still gives Error Code 4?

别等时光非礼了梦想. 提交于 2019-12-02 22:29:35
问题 I'm still a bit new to the Google APIs and the GoogleApiClient class, so I followed this tutorial hoping to get set up enough to display a leaderboard. At the moment I've implemented this code into my game activity. public void onConnectionFailed(ConnectionResult arg0) { Log.d("fes", "error " + arg0.getErrorCode()); if (!isGooglePlayIntentOpen && arg0.hasResolution()) { try { isGooglePlayIntentOpen = true; startIntentSenderForResult(arg0.getResolution() .getIntentSender(), 10, null, 0, 0, 0);