2017-05-24 1 views
-2

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); 
     } 
    } 
+0

희망, 그것은 내 문제를 해결했다. 체크 아웃 : - https://stackoverflow.com/questions/44153675/google-play-games-service-error-not-authorized-when-rollout-for-beta-unity3/44235859#44235859 –

답변

0

감사합니다. Github 문제로 마침내 해결책을 찾았습니다. 문제는에서 Google 앱 기호 일이되어 내가 무슨 짓을 https://github.com/playgameservices/play-games-plugin-for-unity/issues/1754#issuecomment-304581707

에서

:.

구글 콘솔 플레이 -> 당신의 응용 프로그램을 선택 -> 릴리스 관리 -> 응용 프로그램 서명 -> 응용 프로그램 서명 인증서 :

open console.developers.google.com을 열고 프로젝트 -> 자격증 명 -> OAuth 2.0 클라이언트 ID -> OAuth 클라이언트 수정 -> 인증서 서명 지문 -> SHA-1을 복사하십시오. > 이전 SHA1을 복사 된 SHA1 -> save로 대체하십시오.

게임을여십시오. 로그인을해야합니다 -> 이메일 선택 -> 테스터 이메일을 선택하십시오. 이제 Google Play 게임 서비스가 정상적으로 작동합니다.

여기 누군가 블로그가 필요한 경우가 있습니다. 이 도움이 될 것입니다

https://kyokurosagi.blogspot.my/2017/05/unity-local-login-with-unity-android.html

관련 문제