playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.43k stars 952 forks source link

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

Open actionthom opened 2 years ago

actionthom commented 2 years ago

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

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

MansyrevAY commented 2 years ago

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

rico345100 commented 2 years ago

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?

ArjunIsCool commented 1 year ago

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.

Zarkend commented 1 year ago

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)

MoHortus commented 1 year ago

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 commented 1 year ago

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) ...

ArjunIsCool commented 1 year ago

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>

thetruebool commented 1 year ago

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?

ArjunIsCool commented 1 year ago

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>

MackowiakMateusz commented 1 year ago

...

exzizt commented 1 year ago

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.

thetruebool commented 1 year ago

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.

hippogamesunity commented 9 months ago

"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."

wxyz24 commented 2 months ago

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