1
\$\begingroup\$

In the Unity engine, I am using GPGS as a token to log in via Google sign-in. It works, but now I have another issue:

As of the last update of the SDK 2.1., this method in PGS for Unity is deprecated: PlayGamesPlatform.Instance.SignOut();

What method can I use to log users out from their PGS accounts at runtime?

As a backend, I use Firebase, which, for Gmail Authentication, gets the PGS token. It's easy to log out of Firebase, but exiting from one does not make you exit from the other. As a result, when I come back to the login screen after logging out, it automatically always comes back with the same Gmail, without displaying the choose your Gmail account panel after the first time that you install the app.

As this functionality is out of the API, surely someone built a custom solution?

\$\endgroup\$
1

1 Answer 1

0
\$\begingroup\$

PlayServices no longer require a sign-out button(link), hence the deprecation. It seems their direction for v2 is to alternate between accounts, using a default account always signed in.

Also the Recall API, seems to be a way to automatically regain progress etc, without having to manually sign-in, because the recall token gets stored locally. Here's an overview of the Recall API. This is probably why the same gmail is used.There's an expiration date on that you can take advantage if you don't want to delete it altogether, as Zibelas says. More info about account linking here.

New contributor
NPatch is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
\$\endgroup\$

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.