FAQ Database Discussion Community


Update to already published game on Google Play giving error with SHA1 key

android,eclipse,google-play-services,sha1,google-play-games
I have a problem with my already published game at Google Play Store. In my first published game I have not used any Google APIs. But in my next update I have used Google Play Game Services. Now I have uploaded updated APK for Alpha testing. When I have downloaded...

Libgdx game with Google play game services in android app problems

android,libgdx,google-play-games
I have been asking questions related to my Libgdx game Google play game services configuration error. Up-till now I have solved sign in errors but Now I am stuck at Unlock Achievements. So I am posting my code may Be some one can help me out then. Here Is my...

I can not delete Snapshots (Googleplay services C++ 1.3 SDK)

google-play-services,google-play-games
My code is pretty simple: auto response = Snapshots.FetchAllBlocking(); if (IsSuccess(response.status)) { for (auto& fetch : response.data) { Snapshots.Delete(fetch); } This throws an exception: 01-27 01:14:11.675: E/GamesNativeSDK(3448): Exception in com/google/android/gms/games/snapshot/Snapshots.delete: java.lang.IllegalArgumentException: Buffer is closed.. What does this mean? BTW. in my App and client I have two snapshots, and one...

Google game service real time multi game in one app [closed]

android,multiplayer,google-play-games
I am developing an android application with two games. I have configured one game as real time. But is it possible to configure second one also as real time with different ids. So these two should not conflict with each other

Google Play Game Service Check user logged in or not Unity3d

android,authentication,logging,unity3d,google-play-games
I want to check user has been logged in or not if it has been logged in then i will check for achievement. I have written like this : void Update() { Social.localUser.Authenticate((bool success) => { Social.ReportProgress("Cfjewijawiu_QA", 100.0f, (bool success) => { // handle success or failure }); }); }...

Detecting out of date ITurnBasedMatch on Android

android,google-play-services,multiplayer,google-play-games
I am writing a Turn-Based multiplayer Android game using the Google Play API. Thinking ahead to future versions of the app, I realize I may need to change the format of my Byte Data Blob that gets passed around by the ITurnBasedMatch object. And if I change the blob format,...

Obtaining a reference to a Snapshot. Google Play Games Services Saved Games

google-play-games
private PendingResult<Snapshots.CommitSnapshotResult> writeSnapshot(Snapshot snapshot, byte[] data, Bitmap coverImage, String desc) { // Set the data payload for the snapshot snapshot.getSnapshotContents().writeBytes(data); // Create the change operation SnapshotMetadataChange metadataChange = new SnapshotMetadataChange.Builder() .setCoverImage(coverImage) .setDescription(desc) .build(); // Commit the operation return Games.Snapshots.commitAndClose(mGoogleApiClient, snapshot, metadataChange); }...

Google play services | Cloud saved game | Fetch friends game state

unity3d,google-play-services,google-play-games,google-cloud-save
I am working on unity3d based Farm game using Google play services Cloud saved game. I need to fetch my friends game state to visit their farms. Is it possible using Google play game services?? ...

Cannot publish Google Game services

google-play-games
I am trying to publish my game services using Play developer's console. I am getting the "Ready to publish" button, and all lights are green but when I click the button I get a "An unexpected error occurred. Please try again later." red message on the top of the screen....

View leaderboard for app in Google Play Games

android,google-play-services,google-play-games
I just published in app to the Play Store that uses the Google Play Services API. I setup a leaderboard in my developer console, and can successfully publish scores and display the leaderboard in game (along with everyone else's score in my circles, and the public "all-social" leaderboard). However, when...

How to allow users to delete data from Google play games?

google-play-games
I am currently working on a game with Google play games integration. So far everything works fine. Users can log in, achievements and leaderboards are updated. I also implemented snapshots. In the game I want to give the user the possibility to delete all his data. With snapshots this works...

LIBGDX game configuration with google Play game services Errors

android,libgdx,google-play-games
I am a starter with Libgdx and Android. I have developed a small game. I have tried following up Google play game services tutorial at https://github.com/TheInvader360/libgdx-gameservices-tutorial using super jumper example. I have also checked every thing on Google developers Documentation.Also I have followed this tutorial http://forum.xda-developers.com/android/apps-games/setting-eclipse-to-google-play-game-t2889796 Plus stack overflow. a....

Android, sending Leaderboards score after Turnbased match is finished

android,google-play,google-play-games
I need to send the score of both players when the match is over because I need to know who is the winner to calc the score. In this scenario only the player that take the last turn knows it. He can submit his score, but he can't submit his...

Prevent GoogleApiClient from disconnecting on onStop()

android,google-play-games
I'm developing a game using Google Play Game Services, specifically a real-time multiplayer game. Right now I'm having a problem with the suggested usage pattern of the GoogleApiClient which consist of calling disconnect() during onStop(), this causes the game to stop if for example a player receives a call. A...

Accessing users data from Google play game services in Unity

unity3d,google-play-games
I wanted to implement Google Play game services to my Unity game to have leaderboards, achievements etc. How can I get the users data like name, date of birth etc.? And I am using Google Play game services unity plugin found here: https://github.com/playgameservices/play-games-plugin-for-unity

Android: Random Generation in a Networked Situation (Multiplayer)

java,android,random,google-play-games,multiplayer
I wrote a class that, given a seed and difficulty, will return a playing field to my game. The generation is consistent (no matter what, the same seed & difficulty level will always result in the same play field). As far as I know all android devices use Java 1.6...

Cross platform Mobile app development tools with Googleplaygames services

android,cross-platform,google-play-games,hybrid-mobile-app
Hi i want to build an android app using Cross platform tools. I want to also use googleplaygames services to submit and display scores to leaderboards. Can anyone suggest me tools with these features apart from phonegap because i already worked with it? Any suggestions would be helpful....

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

android,google-api,google-play-services,google-play-games
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...

End a multiplayer game on finishMatch

android,google-play,google-play-services,google-play-games
I am developing a turn based multiplayer game in Android using Google Play Game Services. I have successfully ended the game when the user clicks the Finish Button: Games.TurnBasedMultiplayer.finishMatch(mGoogleApiClient, mMatch.getMatchId(), mMatch.getData(), creatorResult, opponentResult) .setResultCallback(new ResultCallback<TurnBasedMultiplayer.UpdateMatchResult>() { @Override public void onResult(TurnBasedMultiplayer.UpdateMatchResult result) { processResult(result); } }); The current player's game gets...

Cannot close turnbased multiplayer match with Google Play Games

android,google-play-games
I have a problem closing my game after the last player close the last match. My turn scheme is: Player A Player B Player B Player A Player A Player B The game works well but in turn "6" when player B try to close the match, player A always...

Google Play Games - Turn Based or Real Time multiplayer API?

android,google-play-games
Am developing a turn based multiplayer Cards Game using Google Play Games API. In this game minimum 3 players must be online before starting & while playing the game. If I use TurnBased Multiplayer API with AutoMatching criteria then Game starts quickly after the createMatch code call like below. And...

How should I Implement TBMP Rematch?

android,google-play-services,android-notifications,google-play-games
I'm creating a multiplayer tic tac toe game and it works for the most part, but when it's time to rematch I'm getting less than desirable functionality. So originally I used the same implementation of Games.TurnBasedMultiplayer.rematch as the TBMPSkeleton sample project. Basically after calling Games.TurnBasedMultiplayer.finish, I check whether or not...

Shared seed for Google Play Services Realtime Multiplayer?

android,google-play-games
I'm working on a Google Play Services Realtime Multiplayer game where I'd like all clients to have a shared seed before the game starts (for determinism when initializing "random" game state). I was planning on using Room.getCreationTimestamp however upon testing not all players receive the same value. Likewise Room.getCreatorId is...

How to publish leaderboard on Google Plus from Google Play Games lib in Android

android,google-play-services,google-play-games
I'm developing an application that uses Google Play Games Leaderboard and BaseGameUtils. The thing is that I want to publish the leaderboard on user's Google Plus and I can't find any exmaple showing how can I do that. Can that be done? Thanks in advance!...