当我尝试在IOS应用程序上打开本机GPP共享对话框时,出现以下错误:
使用基于Web的共享确实可以按预期工作。这是我的代码:
- (IBAction)shareGooglePlus:(id)sender {
GPPSignIn *signIn = [GPPSignIn sharedInstance];
signIn.clientID = kClientID;
signIn.scopes = [NSArray arrayWithObjects:
kGTLAuthScopePlusLogin,
nil];
signIn.delegate = self;
if (![signIn trySilentAuthentication]){
[signIn authenticate];
}
}
- (void)finishedWithAuth: (GTMOAuth2Authentication *)auth
error: (NSError *) error
{
id<GPPShareBuilder> shareBuilder = [[GPPShare sharedInstance]
nativeShareDialog];
}
提前致谢
最佳答案
您是否已在API控制台项目中为该客户端ID启用了Google+ API?