在我的应用程序对用户选择使用谷歌登录到应用程序+?这里登录页面只显示一次,第一次当用户从下一次谷歌,加上按钮水龙头,当我在谷歌加号按钮其直接导航到权限单击页面而不是去loginPage
我的代码
//////////////码进行登录
GPPSignIn *signIn = [GPPSignIn sharedInstance];
signIn.delegate = self;
signIn.shouldFetchGooglePlusUser = YES;
signIn.shouldFetchGoogleUserEmail = YES; // Uncomment to get the user's email
signIn.shouldFetchGoogleUserID= YES;
signIn.clientID = kClientId;
signIn.scopes = [NSArray arrayWithObjects:
kGTLAuthScopePlusLogin, // defined in GTLPlusConstants.h
nil];
signIn.actions = [NSArray arrayWithObjects:@"http://schemas.google.com/ListenActivity",nil];
[signIn authenticate];
/////////////////////////代码提示退出
- (void)Logout:(id)sender {
[[GPPSignIn sharedInstance] signOut];
[self performSelector:@selector(disconnect) withObject:nil afterDelay:1.0f];
}
- (void)disconnect {
[[GPPSignIn sharedInstance] disconnect];
}