in my app have a option for user to login to the app using google +?Here Login page is showing only once for the first time when user taps on google Plus button from next time when i click on google plus button its directly navigation to permissions page instead of going to loginPage
My code is
//////////////CODE FOR LOGIN
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];
/////////////////////////CODE FOR LOGOUT
- (void)Logout:(id)sender {
[[GPPSignIn sharedInstance] signOut];
[self performSelector:@selector(disconnect) withObject:nil afterDelay:1.0f];
}
- (void)disconnect {
[[GPPSignIn sharedInstance] disconnect];
}