您好,我正在尝试让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];
}