playgameservices / play-games-plugin-for-unity

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

Disable auto authentication on startup #3225

Open Danial1899 opened 1 year ago

Danial1899 commented 1 year ago

Hello, I'm implementing v11.0.1, is it possible to disable auto sign in on startup and sign in manually instead? (don't want to force player to choose an account on the first time on splash screen)

T-1K commented 1 year ago

Same here. It would be nice to have a control over (enable/disable) auto-sign-in. Default mode should be disabled. That way player should reach the game with zero prompt. After several plays or hours it could be enabled again by the code.

kobyleha commented 1 year ago

It should be possible to make Play Games optional in Mixed audience-apps. Auto sign-in supposed to be disabled for users known to be under the age of 13. More here: Google API Services User Data Policy

As for today we have found a way to disable auto sign-in by removing PlayGamesInitProvider from AndroidManifest.xml. Then we can use PlayGamesPlatform.Instance.ManuallyAuthenticate method which will work. But it's only partial solution as user won't see the PGS sign-in experience (no popup with user name). Thoughts? Going back to PGS v1?

akvyalkov commented 1 year ago

It super strange as developers removed this feature in 11 version and presenting it as cool feature. We lost control. I need to show trailer when user starts the game. Now user stuck with auth popup. Super unpleasant user expirience. How I supposed to get good R1 with such obstacles?

kobyleha commented 1 year ago

@akvyalkov you are doing something wrong. In 11 you have silent sign in at start, it won't bother user with the popups if you aren't calling ManuallyAuthenticate

MenesApps commented 1 year ago

@kobyleha Hi, PlayGamesInitProvider doesn't appear in my AndroidManifest.xml. Is it added at build time? If so, how did you do? You also mention that the user won't see the PGS sign-in experience. Does this mean they simply won't see the login popup but it will still log them in? Thanks :)