Not fetch Google user when handle sign in with another Google app using GIDSignIn

后端 未结 4 1462
轮回少年
轮回少年 2021-01-18 01:38

I\'m using Google Sign-In for iOS and when using simulator it\'s working fine because no google app is installed and user is fetch, but when using my iPhone 6 device open yo

4条回答
  •  耶瑟儿~
    2021-01-18 02:18

    The issue for me was that

    func signIn(signIn: GIDSignIn!, didSignInForUser user: GIDGoogleUser!, withError error: NSError!)

    is not existing anymore, use instead

    public func sign(_ signIn: GIDSignIn!, didSignInFor user: GIDGoogleUser!, withError error: Error!)

    Note the difference didSignInForUser vs. didSignInFor. Most probably after updating the SDK to swift 3.

提交回复
热议问题