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
0
Question by Taelgalli · Oct 23, 2019 at 08:29 PM · errorplugingoogle play gameslogin

Google play games services plugin can't log in

It's been one week I'm trying to implement googe play games services plugin, I've tested multiple versions of the plugin always on unity 2018.4.11.f1

Plugin git page: https://github.com/playgameservices/play-games-plugin-for-unity

.

My code implementation is pretty much what is in the git page.

First this on start:

     void Start()
     {
         loginButton.onClick.AddListener(() => onClickLogin());
 
 
         PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder()
         // enables saving game progress.
         //.EnableSavedGames()
         // requests the email address of the player be available.
         // Will bring up a prompt for consent.
         .RequestEmail()
         // requests a server auth code be generated so it can be passed to an
         //  associated back end server application and exchanged for an OAuth token.
         .RequestServerAuthCode(false)
         // requests an ID token be generated.  This OAuth token can be used to
         //  identify the player to other services such as Firebase.
         .RequestIdToken()
         .Build();
 
         PlayGamesPlatform.InitializeInstance(config);
         // recommended for debugging:
         PlayGamesPlatform.DebugLogEnabled = true;
         // Activate the Google Play Games platform
         PlayGamesPlatform.Activate();
     }

.

Then, this onClick function:

     private void onClickLogin()
     {
         Social.localUser.Authenticate((bool success) =>
         {
             if (success)
             {
                 feedbackText.text = "succes";
             }
             else
             {
                 feedbackText.text = "fail";
             }
         });
     }


.

I verified my game package. It is the same in:

  • Google play console.

  • Google dev console.

  • Unity plugin setup page.

It's "com.uwniagames.dashtail".

.

I verified that I used the SINGING SHA1 certificate from google play console to register the app at google dev console.

.

My OAuth is also the same in the both google consoles and in the Unity plugin's setup.

.

Finally this is my configuration for target architecture, not sure if this is meaningful.

alt text

.

I used Android Device Monitor to find out the log and I only get this error:

 03-19 14:22:36.126: W/GameHelper(15312): ****
 03-19 14:22:36.126: W/GameHelper(15312): ****
 03-19 14:22:36.126: W/GameHelper(15312): **** APP NOT CORRECTLY CONFIGURED TO USE GOOGLE PLAY GAME SERVICES
 03-19 14:22:36.126: W/GameHelper(15312): **** This is usually caused by one of these reasons:
 03-19 14:22:36.126: W/GameHelper(15312): **** (1) Your package name and certificate fingerprint do not match
 03-19 14:22:36.126: W/GameHelper(15312): ****     the client ID you registered in Developer Console.
 03-19 14:22:36.126: W/GameHelper(15312): **** (2) Your App ID was incorrectly entered.
 03-19 14:22:36.126: W/GameHelper(15312): **** (3) Your game settings have not been published and you are 
 03-19 14:22:36.126: W/GameHelper(15312): ****     trying to log in with an account that is not listed as
 03-19 14:22:36.126: W/GameHelper(15312): ****     a test account.


.

Additional Information:

  • I tested with build and run and also uploading to google and downloading in my device.

  • I am registered as a beta tester but I also tryed releasing to production.

  • My app is only available for Brazil for now.

.

After a week reading and testing every possibility I'm really close to giving up and using something else to login and save player data, this post is my final shot, I really appreciate any help, thank you.

targets.png (1.8 kB)
Comment
Add comment · Show 1
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 Taelgalli · Oct 23, 2019 at 08:32 PM 0
Share

ps: "EnableSavedGames" is comment because I read some people had problems logging in when it's enable, I'm testing it now.

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Jadara · Jan 03, 2020 at 11:12 PM

If you haven't solved this yet. Try removing things such as '.RequestServerAuthCode(false)' from config until it works. Or if you need it try setting up google play with your OAuth2 Client ID.

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 BBIT-SOLUTIONS · Jul 21, 2020 at 03:53 PM 0
Share

Thank you!!! Just commenting out the line .RequestServerAuthCode(false) really helped. After hours i finally get at least a popup in my app and can continue.

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

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

Error occurs in Compilation 1 Answer

Google Play Services occurs error when game left 0 Answers

Which is the easiest way to access google play games services from our game ? 0 Answers

Error after switching Unity versions (or different reason?) 0 Answers

error CS1704: An assembly with the same name `Editor' has already been imported. Consider removing one of the references or sign the assembly 2 Answers


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