After properly implementing Google Play Services in my first game now it is time for the second.
I'm stuck on message "There is no linked app associated with this client ID” .....
I have properly configured things for debug and release. When i run app from Eclipse it works ( debug key is used and i can sign in ).
When i create a signed apk and install it on device i get "There is no linked app associated with this client ID”.
In Google API I have 2 client IDs ( debug and release , also tried to remove one of them - no luck ) I Have tried adding / removing testing accounts ;/ I have created beta test, pushed game to Google Play and marked as beta. Then installed it from the store as "beta tester" I checked also SHA1 values and are set properly. META-INF/CERT.rsa show the same SHA as release in Google API
This is an update not a new apk, game service are published because they are working fine in debug mode.
It's a paid app. After this I have tried to create second linked app with the same package name. It is not working still and now i cannot delete that second linked app :/
It's a mess I know but what else this can be ? I cannot sign in....
The application ID can be found at the top of the Configuration page and is labeled as Project ID below the name of your game. When linking your Android app to your game in the Google Play Console, you must use exactly the same package name and certificate fingerprint that you used to publish your app.
Make sure you have updated your game to the latest version. Try clearing your cache by going to Settings > Application Manager > Google Play Services > Clear Data/Cache. Make sure that you are using the latest Google Play Services and Google Play Games versions by opening Google Play and visiting the My Apps menu.
EDIT: I resolved following the Google Note. LOL
Note: If you are debugging your game using your debug certificate but have configured game services using your release certificate, you should add a second linked app using the same package name and your debug certificate's SHA1 fingerprint. This will allow you to sign in to the application whether it's signed with the debug or release certificates.
Google Services Developers Link
"a second linked app" is the key point, not two game, but two linked app in the same game
So, the right method is to link two time the same app in the Google Play Developer Console:
First app with bundle com.name.appname and release fingerprint
And a second app, with the same bundle and another name (es. AppName Test User1) and with debug fingerprint
In this way, in the Api Developer Console, it creates two OAuth2 client ID for the same project and both work well.
NOTE: If you have done many tests, remember to delete all app in the play games section of Google Play Developer Console, and all projects in the Api Developer Console.
The accepted answer above is correct, but the Play Store now uses Google Play App Signing, which will replace the key you use to create the signed apk with a different one. So, if you continue to run into trouble (like I did), this might be the issue.
I found the answer here, but will paraphrase. Basically, follow all the steps above, but you need to use the key used by the Play Store. Go to the Google Play Console and select the app you are working on. Click on 'Release Management' and then 'App Signing' on the left side menu. There you will see both a "App signing certificate" and an "Upload certificate". You need to use the SHA-1 fingerprint from the "App signing certificate" in order for the 0auth2 client ID to work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With