There is an application that uses the gaming service, but for some reason it stops working. it looks several times, I can log in successfully, but usually not. if I checked the API traffic, then about 10% received a response code = 200, while others - 404.
who get 404:
- games.applications.played
- games.events.record
when I tried to check the error in the log, I see:
11705-13707/com.google.android.gms W/GamesServiceBroker: Client connected with SDK 12171000, Services 11975436, and Games 54390036 11705-9262/com.google.android.gms E/BoundService: No such BoundService for action: com.google.android.gms.auth.APP_CERT 11705-9262/com.google.android.gms E/BoundService: No such BoundService for action: com.google.android.gms.auth.APP_CERT 691-778/system_process E/PROXIMITY: ProximitySensor: unknown event (type=3, code=0) 8876-8890/com.agminstruments.drumpadmachine V/FA: Inactivity, disconnecting from the service 691-778/system_process E/PROXIMITY: ProximitySensor: unknown event (type=3, code=0) 2254-2269/? I/PerfService: PerfServiceNative_getPackName 11705-16860/com.google.android.gms E/Volley: [3966] BasicNetwork.performRequest: Unexpected response code 400 for https://www.googleapis.com/games/v1/players/me?language=ru-RU 11705-9262/com.google.android.gms E/PlayerAgent: Unable to load player g08394879143000804289 11705-9262/com.google.android.gms W/PlayerAgent: {"errors":[{"domain":"global","reason":"invalid","message":"Invalid applicationId with value . Reason: No application ids specified."}],"code":400} 3978-3978/com.google.android.play.games.ui I/SignInActivity: Transition from 8 to 11 3978-3978/com.google.android.play.games.ui W/SignInActivity: onSignInFailed()... 3978-3978/com.google.android.play.games.ui W/SignInActivity: Sign in failed during 8 3978-3978/com.google.android.play.games.ui W/SignInActivity: ==> Returning non-OK result: 10002
I do not understand why there is no identifier in the message "Invalid applicationId with value". because I added id to the application. I also tried to change the ID, in which case I received an error message that the ID XXXXXXXXXXXX is not associated with the my.package.name application.
I also double-checked Application ID , SHA fingerprints, re-importing google-services.json also tried to manually add OAuth2 Client ID from related applications. check the instructions for the game services, and everything looks fine. what else can i check?
Update:
tried to upgrade game servers to 11.8.0 and use GoogleSignInClient
mGoogleSignInClient = GoogleSignIn.getClient(application, GoogleSignInOptions.DEFAULT_GAMES_SIGN_IN); activity.startActivityForResult(mGoogleSignInClient.getSignInIntent(), 312);
but also got an error:
com.google.android.gms.common.api.ApiException: 4:
android google-play-services google-play-games google-api
user5599807
source share