when I start the game the authentication error “uisignrequired” appears and the “play games services” does not start.
i try update SHA code e not work.
99% of the errors related to sign-in are because of wrong SHA - Keystore mismatch only.
Share the complete logcat log to have a look.
If you want to learn more about how the whole auth works, you have a look here from our Cross Platform Native Plugins : Essential Kit plugin documentation. The info is same irrespective of what plugin you use.
I made some changes, and now the error does not appear. But the google play login screen does not appear either.
My Authentication code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using GooglePlayGames;
using GooglePlayGames.BasicApi;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class AutenticationBehaviour : MonoBehaviour
{
void Start()
{
Init();
}
void Init()
{
PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder().RequestIdToken().RequestServerAuthCode(false).EnableSavedGames().Build();
PlayGamesPlatform.InitializeInstance(config);
PlayGamesPlatform.DebugLogEnabled = true;
PlayGamesPlatform.Activate();
PlayGamesPlatform.Instance.Authenticate(SignInInteractivity.CanPromptAlways,ProcessAuthentication);
}
void ProcessAuthentication(SignInStatus status)
{
if (status == SignInStatus.Success)
{
SaveManager.Singleton.OpenSave(false,new GameData());
StartCoroutine(ToMinigameSelect());
}
else
{
//StartCoroutine(CloseGame(status.ToString()));
}
}
IEnumerator ToMinigameSelect()
{
yield return new WaitForEndOfFrame();
SceneManager.LoadScene ("minigameSelect");
}
IEnumerator CloseGame(string msg)
{
GameObject.FindGameObjectWithTag("ErrorText").GetComponent<Text>().text = msg;
yield return new WaitForSeconds(3);
Application.Quit();
}
}
any error here?