Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
3
Question by Donaris · May 26, 2017 at 01:50 PM · androidgoogle play gamesauthentication

Google Play Games Services - authentication fails

Hey Unity Community,

first of all, i know that this question isn't raised the first time here, but unfortunately are all ways shown in the other posts to fix the problem not helping me.
The main problem is, that I can't authenticate with Google play when i publish my apk as an alpha build on google play, it tries to connect to the google play services, a box appears then a loading circle. Then nothing, it just fails. However, if I install my game directly with the apk (not from google play) it works and shows all Achievements and Leaderboards i created. This leads me to the conclusion, that there is nothing wrong with my code but something else causes the problem.

Now what i tried to do:

  1. I checked the androidmanifest.xml, package and app id are matching.

  2. I also checked the sha1 hash with the keytool command, it also matches the one in googles api console.

  3. Tried with other google accounts that i also put into the tester list (I also used the link to participate in the test).

  4. Ran logcat while playing, here the two most relevant Logs i repeatedly got: GamesNativeSDK: Play Games callback indicates connection failure.
    GamesNativeSDK: UI interaction required to connect to Google Play.

I'm using this Plugin (the newest version): https://github.com/playgameservices/play-games-plugin-for-unity

I really hope that someone here can help me with this. Just ask if you need more informations.
have a nice day!

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image paradox9 · May 26, 2017 at 03:12 PM 1
Share

same here, sadly no one is answering. https://stackoverflow.com/questions/44153675/google-play-games-service-error-not-authorized-when-rollout-for-beta-unity3

avatar image Donaris paradox9 · May 31, 2017 at 01:43 PM 0
Share

Yeah, most of similar questions are several years old and the answers there don't work for me sadly, the questions that got asked recently mostly don't have answers at all.

4 Replies

· Add your reply
  • Sort: 
avatar image
10
Best Answer

Answer by Donaris · Jun 07, 2017 at 06:20 AM

Okay, i actually solved it with help of the link @paradox9 posted above (https://stackoverflow.com/questions/44153675/google-play-games-service-error-not-authorized-when-rollout-for-beta-unity3). I'll just copy the steps shown there that fixed it for me:

"What i did :-

  1. Google Play Console -> Select your app -> Release Management -> App signing -> "Upload certificate" [Thanks to @taimur_azhar for pointing out a mistake in the quoted manual] : copy SHA-1 (dont copy word 'SHA1:')

  2. open https://console.developers.google.com/ , select your project -> credentials -> OAuth 2.0 client IDs -> Edit OAuth client -> Signing-certificate fingerprint -> replace the old SHA1 with copied SHA1 ->save.

  3. open you game, you should get sign in -> email selection -> select testers email. Google Play Games Services should work fine now."

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image SyHero · Jul 28, 2017 at 03:18 PM 0
Share

You made my day bro. Thanks.

avatar image wenderRondonia · Sep 13, 2017 at 02:03 PM 0
Share

wow thanks ! I just messed up with debugkeystore and my own

avatar image minh23520000 · Feb 20, 2018 at 03:31 AM 1
Share

PLEASE read the comment below before doing anything else "Listen carefully. Copy SHA-1 from "Upload certificate", not "App signing certificate"." (taimur_azhar). Hope it helps someone =))

avatar image
7

Answer by taimur_azhar · Dec 08, 2017 at 01:56 PM

Listen carefully. Copy SHA-1 from "Upload certificate", not "App signing certificate".

Comment
Add comment · Show 5 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Zelxin · Jan 04, 2018 at 05:14 AM 1
Share

THIS. The 'Best answer' is technically wrong. as it says to copy it from the App signing certificate. That will get you nowhere very fast it is the Upload certificate SHA1 you want.

Hopefully this helps someone as I basically just spent the last 4 hours only to find this.

avatar image minh23520000 · Feb 20, 2018 at 03:32 AM 0
Share

Thank you so muchhh =))) I've spent hours figuring out this.

avatar image Donaris · Apr 27, 2018 at 01:12 PM 0
Share

I changed it in my answer, thanks for clearing that up, it's some time since i asked this question now but maybe some people will still look into this thread and can get it to work :).

avatar image jazib27 · Jul 12, 2018 at 05:45 PM 0
Share

Isn't Upload certificate to be used for debugging and app signing certificate to be used after publishing the app??? Because after publishing the app, the keystore is changed again by Google play console.

avatar image moosesnWoop · Aug 22, 2020 at 09:40 PM 0
Share

This. I listened and it worked.

avatar image
3

Answer by mliukka · Jul 22, 2018 at 07:50 AM

To anyone that's still struggling to get the Google Play login to work even after all these solutions: check the "testing" part of your Google Play Services console. After almost a week of trying every solution, redoing everything, double and triple checking the SHA1 keys are correct, I finally happened to look at this section.

Adding testers

You have to add every google account that is allowed to connect to Google Play Services during your testing phase. Your Google developer account is added automatically as a tester so I'm assuming that's why no tutorial even mentions this part (everyone is using the same Google account on their phone and their Google Developer console). I'm using a PERSONAL account to log in to Google Play on my phone, and a SEPARATE developer account, so I had to manually add my personal email as a Tester; after that everything worked like a charm.


playservices-testing.jpg (229.2 kB)
Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Doronn89 · Jul 26, 2018 at 06:31 AM 0
Share

This does not work for me either. Tried all the above answers, The original answer was good and then it stopped working as well.

I even put my app in open beta just to be sure. Nothing I do works, logs just give the same:

Setting result error code to: 16

[Play Games Plugin DLL] 07/25/18 22:52:19 +03:00 DEBUG: Starting Auth Transition. Op: SIGN_IN status: 16

[Play Games Plugin DLL] 07/25/18 22:52:19 +03:00 DEBUG: Invoking callbacks, AuthState changed from silentPending to Unauthenticated.

[Play Games Plugin DLL] 07/25/18 22:52:19 +03:00 DEBUG: Starting Auth Transition. Op: SIGN_IN status: ERROR_NOT_AUTHORIZED

[Play Games Plugin DLL] 07/25/18 22:52:19 +03:00 DEBUG: AuthState == Unauthenticated calling auth callbacks with failure

avatar image canyon_gyh Doronn89 · Aug 13, 2018 at 01:33 AM 0
Share

Setting result error code to: 16.

I have the same error.How do you deal with that?

avatar image canyon_gyh Doronn89 · Aug 13, 2018 at 09:31 AM 0
Share

I encountered this problem without adding privacy policy (android.permission.READ_PHONE_STATE),maybe, You need to add privacy privileges in the googleplay developer.

And Upload AP$$anonymous$$ to the googleplay developer.

avatar image
0

Answer by anonymous_16296 · Jun 05, 2018 at 08:23 PM

I followed the steps provided in the answer however it's still not working for me. Instead of editing the original key I added another Oauth2.0 key for the app. following that change is there an additional step i must take to make sure that this new key works?

BTW, 1 year later and this is still the most relevant post on this topics

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image jazib27 · Jul 12, 2018 at 05:47 PM 0
Share

Have you published the app on play store?

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

17 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity 5 - Google Play NO Authentication 1 Answer

Google Play Services authentication problem. Failing to sign in ! 6 Answers

Showing Google Play Game Leaderboard UI not working at all 4 Answers

Google Play Services error 0 Answers

Where can I find the resource definition for google play games android configuration? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges