- 뒤끝 SDK 버전 : Base 5.18.3 / Chat 1.3.1
- 프로젝트명 : 핵 앤 슬래시 키우기
이곳에 물어도 되는건지 모르겠습니다만,
private void ProcessAuthentication(SignInStatus status)
{
if (status == SignInStatus.Success)
{
PlayGamesPlatform.Instance.RequestServerSideAccess(false, code =>
{
googleAuthcode = code;
StartCoroutine(nameof(StartGoogleLogin));
});
}
else
{
// Disable your integration with Play Games Services or show a login
// button to ask users to sign-in. Clicking it should call
// PlayGamesPlatform.Instance.ManuallyAuthenticate(ProcessAuthentication).
Binder.UIManager.NetworkErrorPopupPanel.Show(NetworkErrorType.GoogleLoginFailed, status.ToString());
}
}
private IEnumerator StartGoogleLogin()
{
bool hasErrorOccured = false;
// 1. GPGS2 엑세스 토큰
BackendReturnObject bro = Backend.BMember.GetGPGS2AccessToken(googleAuthcode);
Binder.MainScreen.Show_LoadingLogText("Getting GPGS access token. [1/5]");
yield return null;
if (bro.IsSuccess())
{
accessToken = bro.GetReturnValuetoJSON()["access_token"].ToString();
}
else
{
Binder.UIManager.NetworkErrorPopupPanel.Show(NetworkErrorType.Unknown,
bro.GetErrorMessage(), $"Status Code: {bro.GetStatusCode()} Error Code: {bro.GetErrorCode()}");
hasErrorOccured = true;
}
if (hasErrorOccured)
yield break;
PlayGamesPlatform.Instance.RequestServerSideAccess(false, code =>
저 forceRefresh를 true로 해야하는걸까요?
아주 간헐적으로 문제가 일어나는것 같습니다.
