2016-08-14 4 views
1

안녕하세요. iOS 앱에서 Google Play 게임에 로그인하려고합니다. 나는 sdk를 수동으로 설치했고 Google 웹 사이트에서 시작하기 자습서에 모두 나와 있습니다. 하지만 앱이 사파리 나 소요 로그인 버튼을 클릭하고 난 콘솔에서 해당 메시지를 받고 있습니다 때 나는 그것이 내 응용 프로그램에 날 다시 걸리지 만 아무도 일어나지 권한에 허용을 클릭 후에도iOS에서 Google Play 게임 로그인 오류가 발생했습니다.

2016-08-14 14:32:26.450 פקודה![34477:5811630] -canOpenURL: failed for URL: "com.google.gppconsent.2.4.1://" - error: "This app is not allowed to query for scheme com.google.gppconsent.2.4.1" 
2016-08-14 14:32:26.452 פקודה![34477:5811630] -canOpenURL: failed for URL: "com.google.gppconsent.2.4.0://" - error: "This app is not allowed to query for scheme com.google.gppconsent.2.4.0" 
2016-08-14 14:32:26.454 פקודה![34477:5811630] -canOpenURL: failed for URL: "com.google.gppconsent.2.3.0://" - error: "This app is not allowed to query for scheme com.google.gppconsent.2.3.0" 
2016-08-14 14:32:26.455 פקודה![34477:5811630] -canOpenURL: failed for URL: "com.google.gppconsent.2.2.0://" - error: "This app is not allowed to query for scheme com.google.gppconsent.2.2.0" 
2016-08-14 14:32:26.456 פקודה![34477:5811630] -canOpenURL: failed for URL: "com.google.gppconsent://" - error: "(null)" 
2016-08-14 14:32:26.457 פקודה![34477:5811630] -canOpenURL: failed for URL: "hasgplus4://" - error: "(null)" 
2016-08-14 14:32:26.486 פקודה![34477:5811630] -canOpenURL: failed for URL: "googlechrome-x-callback:" - error: "(null)" 
2016-08-14 14:32:26.487 פקודה![34477:5811630] -canOpenURL: failed for URL: "googlechrome:" - error: "(null)" 

기능 :

- (void)didFinishGamesSignInWithError:(NSError *)error { 
    if (!error) 
    NSLog(@"GooglePlayGames finished signing in!"); 
    else 
    NSLog(@"***Error signing in! %@", [error localizedDescription]); 

} 

전혀 호출되지 않았습니다.

로그인 할 내 코드를 먹으 렴 도와주세요 :

- (void)viewDidLoad 
{ 
    [super viewDidLoad]; 

    [GIDSignIn sharedInstance].clientID = kClientID; 
    [GPGManager sharedInstance].statusDelegate = self; 
    [GIDSignIn sharedInstance].uiDelegate = self; 

    _currentlySigningIn = [[GPGManager sharedInstance] signInWithClientID :kClientID silently:YES]; 
} 

# pragma mark -- GIDSignInUIDelegate methods 

- (void)signIn:(GIDSignIn *)signIn 
didSignInForUser:(GIDGoogleUser *)user 
    withError:(NSError *)error 
{ 
    NSLog(@"%@",user); 
} 


# pragma mark -- GPGStatusDelegate methods 

- (void)didFinishGamesSignInWithError:(NSError *)error { 
    if (!error) 
    NSLog(@"GooglePlayGames finished signing in!"); 
    else 
    NSLog(@"***Error signing in! %@", [error localizedDescription]); 

} 
- (void)didFinishGamesSignOutWithError:(NSError *)error { 
    if (error) 
     NSLog(@"Received an error while signing out %@", [error localizedDescription]); 
    else 
     NSLog(@"Signed out!"); 
} 

- (IBAction)signInButtonWasPressed:(id)sender { 
    [[GPGManager sharedInstance] signInWithClientID:kClientID silently:NO]; 
} 

- (IBAction)signOutButtonWasPressed:(id)sender { 
    [[GPGManager sharedInstance] signOut]; 
} 

답변

1

가 여기에 대한 "이 응용 프로그램은 체계를 조회 할 수 없습니다"찾을거야.

새로운 ios 버전 인 ios9가 변경된 것 같습니다.

이 항목을 찾은 분 blog.

아이폰 OS 9에서 URL 스키마에 대한 변경 사항에 대한 주요 비트는 "앱 감지"제목 에서 9 분 마크 주위에서 시작하여, 개인 정보 보호 과 당신의 애플리케이션 세션입니다.

iOS의 앱에서 사용할 수있는 두 가지 URL 관련 방법은 이며, canOpenURL 및 openURL입니다. 이것들은 새로운 메서드는 아니며 메서드 자체도 바뀌지 않습니다. 이름에서 알 수 있듯이 "URL을 처리하는 방법을 알고있는 기기에 설치된 앱이 인지 확인한 후"canOpenURL "이 예 또는 아니요 대답을 반환합니다. "openURL"은 실제로 URL을 실행하는 데 사용됩니다. 은 일반적으로 앱을 종료하고 다른 앱에서 URL을 엽니 다.

자세한 내용은 SO thread에서 코드 구현을 확인하십시오.

관련 문제