• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Can't Squash this Bug! - Android TurnBasedMutliplayer

Hey Mates, Hoping to get some answers on a bug my brother and I have been working on for a long time!

We've been having troubles on the networking side of our multiplayer game, mainly getting callbacks for matchmaking. We posted a Stack Overflow with more details here https://stackoverflow.com/questions/36682494/android-turnbasedmutliplayer-no-callbacks#_=_.

We're about a year into development but this is our first game so any help would be appreciated. I know there's a lot of experience in the android community so any advice would help us out a lot.

My email is (mod redacted)
Thanks guys! Lou
 
Last edited by a moderator:
Just a suggestion, but have you looked at the return parameter from createMatch()? Does it tell you anything useful?
 
The response code I get is

04-27 21:40:54.627 10642-10990/? E/Volley: [26057] BasicNetwork.performRequest: Unexpected response code 401 for https://www.googleapis.com/games/v1/turnbasedmatches/create?language=en_US
04-27 21:40:54.668 10642-12408/? E/DataHolderOperation: There is no linked app associated with this client ID.
com.google.android.gms.games.server.error.GamesException
at com.google.android.gms.games.server.GamesServer.getResponseBlocking(GamesServer.java:174)


However, I have unzipped the android-debug.apk and ran keytool on META-INF/CERT.RSA. I then attempted to readd the OAUTH through the google play dev console using the SHA1 fingerprint from the output and it said "Package name and certificate fingerprint combination already exists". These two error messages seem to contradict each other entirely.

I have also tried readding (after deleting all credentials) the credentials in the google developer console (not play).

I have double checked the package name and app_id
 
Full error stack on creatematch

04-27 21:53:01.769 10642-10991/? E/Volley: [26058] BasicNetwork.performRequest: Unexpected response code 401 for https://www.googleapis.com/games/v1/turnbasedmatches/create?language=en_US
04-27 21:53:01.827 10642-13936/? E/DataHolderOperation: There is no linked app associated with this client ID.
com.google.android.gms.games.server.error.GamesException
at com.google.android.gms.games.server.GamesServer.getResponseBlocking(GamesServer.java:174)
at com.google.android.gms.games.broker.TurnBasedAgent.createMatch$46a5f9fd(TurnBasedAgent.java:181)
at com.google.android.gms.games.broker.DataBroker.createTurnBasedMatch$d2d5e18(DataBroker.java:2375)
at com.google.android.gms.games.service.operations.turnbased.CreateTurnBasedMatchOperation.fetchData(CreateTurnBasedMatchOperation.java:43)
at com.google.android.gms.games.service.operations.AbstractDataHolderOperation.execute(AbstractDataHolderOperation.java:69)
at com.google.android.gms.games.service.operations.GamesOperationAdapter.execute(GamesOperationAdapter.java:23)
at com.google.android.gms.chimera.BaseAsyncOperationService$OperationTask.run(BaseAsyncOperationService.java:177)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
 
Back
Top Bottom