I'm having this case where the GIDSignIn.sharedInstance().signInSilently() is returning an error:
Error Domain=com.google.GIDSignIn Code=-4 "The operation couldn’t be
completed. (com.google.GIDSignIn error -4.)"
I can't seem to find any documentation of this error under the google signin docs or stackOverflow for that matter.
I'm expecting this to error to happen if I request a silent signIn for no previously signedIn user.
But to my surprise it even happens when I have a user previously signedIn and I attempt to signIn Silently a second time after a few seconds.
A second issue I'm having difficulty with is to determine if there is a user signed In using :
GIDSignIn.sharedInstance().currentUser
which is either a nil or a GIDGoogleUser object.
Any help making progress on this issue would be much appreciated.
Thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…