signInSilently() generates an error code=-4

前端 未结 8 1866
日久生厌
日久生厌 2020-12-20 11:24

I\'m having this case where the GIDSignIn.sharedInstance().signInSilently() is returning an error:

Error Domain=com.google.GIDSignIn Code=-4 \"The op

8条回答
  •  余生分开走
    2020-12-20 11:49

    Please refer my answer from Saving the current GIDGoogleUser instead of signing in on every launch

    you should conform the GIDSignInUIDelegate protocol without implementing the methods.

    signInWillDispatch:error: 
    signIn:presentViewController:
    signIn:dismissViewController:
    

    It will fix your error -4.

提交回复
热议问题