android 버전 6.0, play-games-plugin-for-unity v0.9.38a, unity 5.6.0f3을 사용하여 Google Play 인증에 실패했습니다. 작업입니다 안드로이드 전화 에UNITY : Google Play 스토어에서 다운로드 할 때
빌드 및 PC에서 직접 실행합니다. 내 Google 설정을 의미합니다 콘솔과 화합 플레이 올바른지. 내가 애플 리케이션와 구글 플레이 스토어에서 다운로드를 제거 후
그러나, 구글의 유료 인증 전혀을 작동하지 않았다.
내가 왜 궁금해서 컴퓨터에서 직접 작동하지만 Google Play 스토어에서 다운로드 할 수 없습니까? 누구나이 동일한 문제가 있습니까?
다음은 코드입니다.
using GooglePlayGames;
using GooglePlayGames.BasicApi;
.....
void Start() {
// Create client configuration
PlayGamesClientConfiguration config = new
PlayGamesClientConfiguration.Builder()
.Build();
// Enable debugging output (recommended)
PlayGamesPlatform.DebugLogEnabled = true;
// Initialize and activate the platform
PlayGamesPlatform.InitializeInstance(config);
PlayGamesPlatform.Activate();
PlayGamesPlatform.Instance.Authenticate(SignInCallback, false);
}
public void SignInCallback(bool success) {
if (success) {
txtUserName.text = Social.localUser.userName;
isSignIn = true;
txtSignInOut.text = "Sign Out";
btnShowTopScore.SetActive (true);
} else {
txtUserName.text = "";
isSignIn = false;
btnShowTopScore.SetActive (false);
}
}
희망, 그것은 내 문제를 해결했다. 체크 아웃 : - https://stackoverflow.com/questions/44153675/google-play-games-service-error-not-authorized-when-rollout-for-beta-unity3/44235859#44235859 –