play-games-plugin-for-unity icon indicating copy to clipboard operation
play-games-plugin-for-unity copied to clipboard

What are our options for signing out of GooglePlayGames in v11.0.1

Open actionthom opened this issue 2 years ago • 14 comments

With PlayGamesPlatform.Instance.SignOut being removed, does version 11.0.1 contain the google sign in client, to allow us to sign out if we want to? And if not is there a recommended solution for people who still want to allow users to sign out?

Versions

  • Unity version: 2020.3.33f1
  • Google Play Games Plugin for Unity version: 11.0.1

Additional context Our product allows login and saving via both GooglePlayGames and Facebook and we allow the user to choose. We allow the user to switch accounts in-game so they need to be able to log out of one and in to another

actionthom avatar May 10 '22 11:05 actionthom

Yes, and how should people switch their accounts if they want to?

MansyrevAY avatar May 11 '22 10:05 MansyrevAY

I'm having a very serious issue that the authentication callback never fired on some random people, so I was going to upgrade the version to the latest, hoping it's solved.

But after I read the upgrading guide, I changed my mind about not updating it because the SignOut method has been removed. I couldn't understand why it was removed, and found a guy asked about the reason: https://github.com/playgameservices/play-games-plugin-for-unity/issues/3138

So the reason of removed this feature is just that now people can sign out themself, outside of the app?

Am I the only one who seems too much complicated in the process of logging out, to tell the people to sign out in that way?

rico345100 avatar Jun 21 '22 14:06 rico345100

this is so fucking annoying, i spent hours trying to figure out whats wrong in my code when i hit upon this page. I cant believe they really removed it. It made logging in and out so much easier.

ArjunIsCool avatar Nov 06 '22 14:11 ArjunIsCool

The support on this package is astonishing, holy moly

After some investigation when they upgraded from v10.14 to v11.01 they started using the Play Games Services v2 SDK

The documentation for the v2 is https://developers.google.com/games/services/android/quickstart and in the signin secction they say that now you literally don't need signout (because YES) https://developers.google.com/games/services/android/signin

So, what I did is just rollback to v10.14 (remove Assets/GooglePlayGames folder and import the new package)

Zarkend avatar Dec 07 '22 20:12 Zarkend

lol so there is no option to deactive or logout etc. amazing.

wanted to make for my app that user can manually enable/disable Play Games Service while being in the game. I guess i will have to write a note: please restart the game on disable 🤡

MoHortus avatar Mar 13 '23 19:03 MoHortus

haha now I see the whole issue. Even though I have switch in the game, which would run NO code related to Google Play Games, so not running for example: PlayGamesPlatform.Activate() PlayGamesPlatform.Instance.Authenticate

there is still active login to Google Play Games when I start the app, ... well I will have to try v10.14 I guess.

So I totally agree with the above: why would somebody call in the documentation that it is improvements for developers to have no option to sign out (or actually to have forced sign in) ...

MoHortus avatar Mar 16 '23 21:03 MoHortus

I would say that this was done purposely to force users to use Google Play Games all the time. Very creepy tho.

On Fri, Mar 17, 2023, 2:51 AM MoHortus @.***> wrote:

haha now I see the whole issue. Even though I have switch in the game, which would run NO code related to Google Play Games, so not running for example: PlayGamesPlatform.Activate() PlayGamesPlatform.Instance.Authenticate

there is still active login to Google Play Games when I start the app, ... well I will have to try v10.14 I guess. Never had I used last version of plugin and reverted to some older version.

So I totally agree with the above: why would somebody call in the documentation that it is improvements for developers to have no option to sign out (or actually to have forced sign in) ...

— Reply to this email directly, view it on GitHub https://github.com/playgameservices/play-games-plugin-for-unity/issues/3152#issuecomment-1472759389, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJL4UPB4OE2M46TOOOG34JTW4N76ZANCNFSM5VRLCH7Q . You are receiving this because you commented.Message ID: <playgameservices/play-games-plugin-for-unity/issues/3152/1472759389@ github.com>

ArjunIsCool avatar Mar 17 '23 05:03 ArjunIsCool

So guys what happens if the user signs in with the wrong google account and wants to switch it back? is there a way to get around that?

thetruebool avatar Mar 25 '23 16:03 thetruebool

Apart from resetting the game data or reinstalling, not really :/

On Sat, Mar 25, 2023, 10:13 PM Vuqar Rahimli @.***> wrote:

So guys what happens if the user signs in with the wrong google account and wants to switch it back? is there a way to get around that?

— Reply to this email directly, view it on GitHub https://github.com/playgameservices/play-games-plugin-for-unity/issues/3152#issuecomment-1483866551, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJL4UPGBLMTIL5RPGMZ73KTW54OCJANCNFSM5VRLCH7Q . You are receiving this because you commented.Message ID: <playgameservices/play-games-plugin-for-unity/issues/3152/1483866551@ github.com>

ArjunIsCool avatar Mar 26 '23 04:03 ArjunIsCool

...

MackowiakMateusz avatar Apr 15 '23 23:04 MackowiakMateusz

We really need a way to sign out, please. I even changed my current profile in the Google Play Games app, but it's still logging me in with the initial one.

exzizt avatar Apr 18 '23 02:04 exzizt

I just downgraded and used 10.14 instead. Worked like a charm. I don't see a reason to use 11 with all of these shortcomings it has.

thetruebool avatar Apr 19 '23 17:04 thetruebool

"The sign out method is removed, and we will no longer require an in-game button to sign in or sign out of Play Games Services."

hippogamesunity avatar Oct 06 '23 21:10 hippogamesunity

latest version with an easy switch https://developer.android.com/games/pgs/app-shortcuts

wxyz24 avatar Apr 17 '24 11:04 wxyz24