Iakobs / godot-play-game-services

A Godot 4.2 plugin for integration with Google Play Game Services
MIT License
82 stars 5 forks source link

Signing In doesn't complete #31

Closed PrabhTonicbits closed 2 weeks ago

PrabhTonicbits commented 1 month ago

Hi Jacob, Thank you so much for creating this plugin for Godot 4.2. I'm trying to implement the sign in and have followed the steps to configure the Pay services in Google play console and added my credentials. After trying to call the log in function, it pops up with my google accounts and when I try and sign in, it just loads for a little bit and doesn't sign me in. Not sure what exactly the issue could be. If you have any idea of what could be causing it that would be much appreciated. Thank you

Update: Fixed by giving the correct SHA fingerprint key to the google cloud platform (No fault in the plugin)

rogerlopz commented 1 month ago

Hi, can you open android studio and filter the logcat logs by package:com.jacobibanez.godot.test.game package:com.google.android.gms and see whats the error? I want to see if it's the same as mine where I only see a spinner but nothing loads after

Update: Fixed my issue by going to Play Games Services and publishing (after filling all details requested by google).

Iakobs commented 1 month ago

Hi @PrabhTonicbits sorry for the delay, I was taking some days off!

I'm not sure what do you mean when you say "it pops up with my google accounts". The V2 of google play games API doesn't open a screen for logging in as far as I remember. You have to log in in your Google Play Games app and then once you enter your game and call the plugin method for logging in, it just logs in automatically.

Can you verify that you are logged in with your account in the Google Play app first? Let me know how it goes!


Hi @rogerlopz I'm glad you fixed the issue! Publishing any changes in the Google Dev Console, under the Play Games section, is, in fact, necessary to see the changes in the game.

PrabhTonicbits commented 2 weeks ago

Hi Lakobs, Thanks for your reply! Sorry for getting back so late, I managed to fix the issue which was caused by me giving the wrong SHA fingerprint key to the Google Cloud Platform. Sorry for not closing the issue. The V2 Google Play games does have a screen at the start with all the locally stored accounts the very first time, once you sign in with one, it automatically signs in with the last account each time. I was able to get the account list to show but the sign in wouldn't validate (due to my fault of course lol) Thank you so much for all your work on the plugin!