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 /
  • Help Room /
avatar image
1
Question by Leobenmc · Feb 17, 2017 at 03:28 PM · androidgoogle play games

Cannot sign in to Google Play Services

Hi all,

I can't sign in to Google Play Services on my Android builds in Beta.

I've followed the instructions here: https://github.com/playgameservices/play-games-plugin-for-unity

I've copied and pasted the resource configuration into Android Setup, and Google Play Game Services says it has configured correctly.

I have a Sign In button I use to test this - which will make the Leaderboards and Achievements Button visible upon success:

     using System.Collections;
     using System.Collections.Generic;
     using UnityEngine;
     using UnityEngine.UI;
     using GooglePlayGames;
     using UnityEngine.SocialPlatforms;
     
     public class GPSActions : MonoBehaviour {
     
     
         public Button leaderboardButton;
         public Button achievementsButton;
     
         // Use this for initialization
         void Start () {
             PlayGamesPlatform.Activate();
             
         }
     
         // Update is called once per frame
         void Update()
         {
     
         }
     
         public void GPSSignIn()
         {
           
                 // authenticate user:
                 Social.localUser.Authenticate((bool success) =>
                 {
                     // handle success or failure
                     if (success)
                     {
                         Debug.Log("Authentication successful");
                         string userInfo = "Username: " + Social.localUser.userName +
                             "\nUser ID: " + Social.localUser.id +
                             "\nIsUnderage: " + Social.localUser.underage;
                         Debug.Log(userInfo);
     
                         achievementsButton.GetComponent<Button>().gameObject.SetActive(true);
                         leaderboardButton.GetComponent<Button>().gameObject.SetActive(true);
                     }
                     else
                     { 
                         Debug.Log("Authentication failed");
     
                         
                     }
     
                 });
             }
 

However when I press 'Sign In' in my Android Beta, the Google Play Services window opens, the green circle rotates and then nothing happens. I have made sure to add my email address to the Google Play Developer Console list of testers.

Is there anything I'm missing in the code above?

Thanks in advance!

Leo

Comment
Add comment
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

5 Replies

· Add your reply
  • Sort: 
avatar image
6

Answer by peaceofmind1188 · Mar 19, 2018 at 05:12 AM

I'm not even getting a green sign in window. Upload certificate is correct on API console, testers enabled, SDK is up to date, and keystores are set. I've tried every tutorial I could find and started a new application/linked app for each one. None of them gets any results. No green window for signing on ever pops up. If anyone is willing to help me out, i'd be so grateful!

Comment
Add comment · Show 7 · 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 Info-Gamer · Jul 12, 2018 at 03:15 AM 0
Share

I am having the same issue. Did you find a solution to this problem?

avatar image peaceofmind1188 Info-Gamer · Jul 12, 2018 at 03:47 PM 2
Share

Yes I did! I found it shortly after I posted. For some reason when I imported GPS, it did not import all the required folders (and this happened every time). I can't remember specifically which ones it left out, but I went through the list and re-imported the folders that were missing from my project. Then went to Assets ->PlayServiceResolver ->AndroidResolver -> ForceResolve. Then everything worked as intended =). Hope this helps

avatar image Tarodev peaceofmind1188 · Mar 02, 2019 at 04:05 AM 0
Share

I can not thank you enough! I feel like you're the only person who has written this answer on the internet and it was the only thing that fixed it. 3 days wasted...

Show more comments
avatar image Mhietos · Feb 20, 2019 at 05:21 PM 0
Share

I had to update my unity version

avatar image
3

Answer by jerryjr261 · May 28, 2017 at 08:14 PM

I had this issue and this is what worked for me


google-play-services.png (476.8 kB)
Comment
Add comment · Show 2 · 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 DungDajHjep · Jul 13, 2017 at 08:24 AM 0
Share

thanks you very much . If using Google Play App Signing , you need do it !

avatar image Lucasr07 · Sep 27, 2017 at 11:44 PM 0
Share

Thanks, Thanks, Thanks so much !!I was already giving up solving this problem I can not find the solution anywhere but that solved my problem! thank you so much!

avatar image
0

Answer by SaurabhStudio · May 29, 2017 at 09:43 AM

 PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder()
             .Build();
 
         PlayGamesPlatform.InitializeInstance(config);
         // recommended for debugging:
         PlayGamesPlatform.DebugLogEnabled = true;
         // Activate the Google Play Games platform
         PlayGamesPlatform.Activate();


just try this

Comment
Add comment · 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
0

Answer by tsondhi2006 · Jun 18, 2017 at 11:21 AM

I had the same issue, There were 2 keystores for my application...long story short...try to use the 1st keystore that you made if you have multiple keystores.

Comment
Add comment · 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
0

Answer by bitsacpce · Jun 19, 2018 at 07:30 AM

@peaceofmind1188 I am facing similar issues after properly configuring everything. were you able to solve the issue??

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 peaceofmind1188 · Jul 12, 2018 at 03:47 PM 0
Share

Yes I did! I found it shortly after I posted. For some reason when I imported GPS, it did not import all the required folders (and this happened every time). I can't remember specifically which ones it left out, but I went through the list and re-imported the folders that were missing from my project. Then went to Assets ->PlayServiceResolver ->AndroidResolver -> ForceResolve. Then everything worked as intended =). Hope this helps

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

164 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 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 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 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 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 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 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 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 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 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 Android APK crashing on startup with GPlay Services 0 Answers

Google Play services and Admob issue 0 Answers

Google Play services error Execution failed for task ':transformClassesWithJarMergingForRelease'. 0 Answers

Google Play Games - Unable to sign in - load the player 0 Answers

2021.2.7: DownloadHandlerTexture and UnityWebRequestTexture not recognized? 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