Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
331 views
in Technique[技术] by (71.8m points)

android - Google Play Services - Sign in - Client ID debug vs release

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....

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...