playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.44k stars 959 forks source link

Can't authenticate user, always canceled #3035

Open stroibot opened 3 years ago

stroibot commented 3 years ago

Hi! My game can't authenticate user and it always returns result Canceled. It just shows Connecting to Play Games and then nothing. I'm using Unity 2021.1.6f1 and 0.10.12 package. Honestly, I don't know what to do. This is my first time working with this. I think I configured everything on Google Developer Console, includeing Play Game Services and OAuth.

Screenshot 2021-05-13 010049 Screenshot 2021-05-13 010103
private void Awake()
        {
            PlayGamesPlatform.DebugLogEnabled = true;

            PlayGamesPlatform.Activate();

            LogIn();
        }

        public void LogIn()
        {
            PlayGamesPlatform.Instance.Authenticate(SignInInteractivity.CanPromptAlways, (result) => { ... });
        }
agneisilva commented 2 years ago

Hey Guys, has anyone solved this bug?

Lucidarme commented 2 years ago

@agneisilva I had the same problem, are you sure the keystore you use for generating the SHA1 is the same for building the apk ?

bcmccracken commented 2 years ago

Cross commenting here since this error is frequently reported, but it was hard to find help.

This post really helped me:

https://github.com/playgameservices/play-games-plugin-for-unity/issues/3003#issuecomment-827718632

and I added some tips in my response:

https://github.com/playgameservices/play-games-plugin-for-unity/issues/3003#issuecomment-956834477