trySilentAuthentication bez przycisku Google+
Implementuję logowanie Google+ w systemie iOS, użyłem tego kodu i działa dobrze
signIn = [GPPSignIn sharedInstance];
signIn.delegate = self;
//signIn.shouldFetchGoogleUserEmail = YES;
signIn.shouldFetchGooglePlusUser = YES;
signIn.clientID = kClientId;
signIn.scopes = [NSArray arrayWithObjects:kGTLAuthScopePlusLogin,nil];
signIn.actions = [NSArray arrayWithObjects:@"http://schemas.google.com/ListenActivity",nil];
[signIn authenticate];
Chcę użyć metody [signIn trySilentAuthentication] do nie zostawiania za każdym razem, gdy użytkownik loguje się, ale nie działa bez użycia przycisku google + GPPSignInButton
Więc co złego w używaniu tego kodu zamiast powyższego
signIn = [GPPSignIn sharedInstance];
signIn.delegate = self;
//signIn.shouldFetchGoogleUserEmail = YES;
signIn.shouldFetchGooglePlusUser = YES;
signIn.clientID = kClientId;
signIn.scopes = [NSArray arrayWithObjects:kGTLAuthScopePlusLogin,nil];
signIn.actions = [NSArray arrayWithObjects:@"http://schemas.google.com/ListenActivity",nil];
[signIn trySilentAuthentication];
Czy można użyć trySilentAuthentication z didSelectRowAtIndexPath? z góry dziękuję