您好,我正在嘗試讓Google Play遊戲在我的iOS應用中登錄。 我已經手動安裝了sdk,並且做了一切,就像谷歌網站上的入門教程所說的那樣。 但是,當我點擊按鈕的應用程序需要我Safari瀏覽器的符號和我得到這些消息在控制檯: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];
}