Is there a way to launch the Google SignIn programmatically without pressing on the GIDSignInButton ?
I'm trying to wrap a signal around hitting google api where the user must log in.
sort of :
googleSignInSignal().then(getPersonalDataSignal)
You can actually call this method instead:
GIDSignIn.sharedInstance().signIn()
It worked fine for me and it seems to be a much cleaner approach.
I hope it can help someone with the same question.
You can try something like this - not pretty, but works:
GIDSignInButton *googleButton =[[GIDSignInButton alloc] init];
[googleButton sendActionsForControlEvents:UIControlEventTouchUpInside];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With