{"action":"opened","issue":{"url":"https://api.github.com/repos/firebase/FirebaseUI-iOS/issues/574","repository_url":"https://api.github.com/repos/firebase/FirebaseUI-iOS","labels_url":"https://api.github.com/repos/firebase/FirebaseUI-iOS/issues/574/labels{/name}","comments_url":"https://api.github.com/repos/firebase/FirebaseUI-iOS/issues/574/comments","events_url":"https://api.github.com/repos/firebase/FirebaseUI-iOS/issues/574/events","html_url":"https://github.com/firebase/FirebaseUI-iOS/issues/574","id":386081765,"node_id":"MDU6SXNzdWUzODYwODE3NjU=","number":574,"title":"GIDSignInButton in Swift doesn't work","user":{"login":"av8ramit","id":5588272,"node_id":"MDQ6VXNlcjU1ODgyNzI=","avatar_url":"https://avatars1.githubusercontent.com/u/5588272?v=4","gravatar_id":"","url":"https://api.github.com/users/av8ramit","html_url":"https://github.com/av8ramit","followers_url":"https://api.github.com/users/av8ramit/followers","following_url":"https://api.github.com/users/av8ramit/following{/other_user}","gists_url":"https://api.github.com/users/av8ramit/gists{/gist_id}","starred_url":"https://api.github.com/users/av8ramit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/av8ramit/subscriptions","organizations_url":"https://api.github.com/users/av8ramit/orgs","repos_url":"https://api.github.com/users/av8ramit/repos","events_url":"https://api.github.com/users/av8ramit/events{/privacy}","received_events_url":"https://api.github.com/users/av8ramit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-30T08:16:01Z","updated_at":"2018-11-30T08:16:01Z","closed_at":null,"author_association":"NONE","body":"Welcome to FirebaseUI and thanks for submitting an issue!\r\n\r\nPlease take a look at [open issues](https://github.com/firebase/FirebaseUI-iOS/issues?q=is%3Aopen+is%3Aissue), as well as [resolved issues](https://github.com/firebase/FirebaseUI-iOS/issues?q=is%3Aissue+is%3Aclosed), to see if your issue is either already being addressed, or has been solved by someone else.\r\n\r\nIf your issue concerns the CocoaPods error, \"...transitive dependencies that include static binaries\", please take a look at any of the following issues and see if your problem is solved: #48, #47, #46, #34, #23.\r\n\r\nIf not, please feel free to fill in the following info so we can help faster!\r\n\r\n### Step 1: Are you in the right place?\r\n\r\n  * For issues or feature requests related to the code **in this repository** file a GitHub issue.\r\n  * For general technical questions, post a question on [StackOverflow](http://stackoverflow.com/) tagged appropriately.\r\n  * For general Firebase discussion, use the [firebase-talk google group](https://groups.google.com/forum/#!forum/firebase-talk)\r\n  * For help troubleshooting your application that does not fall under one of the above categories, reach out to the [personalized Firebase support channel](https://firebase.google.com/support/contact/troubleshooting/)\r\n\r\n### Step 2: Describe your environment\r\n\r\n  * Objective C or Swift: Swift\r\n  * iOS version: 11.0\r\n  * Firebase SDK version: 4.13.0\r\n  * GoogleSignIn (4.2.0)\r\n\r\n### Step 3: Describe the problem:\r\nI am following [these instructions](https://firebase.google.com/docs/auth/ios/google-signin) and I have added a GIDSignInButton. For some reason pressing it does nothing. I expect it to launch a view where I log into gmail. Do I need the gmail app on the phone as well? I'm running in a simulator. I've followed all the other steps and have done the necessary updates to my UIViewController where login logic occurs.\r\n\r\n#### Steps to reproduce:\r\n\r\n  1. Setup AppDelegate, and the Login ViewController.\r\n  2. Add a UIView and set up the class.\r\n  3. Run the simulator and press the G-SignIn button.\r\n  \r\n#### Observed Results:\r\n\r\n  * What happened?  This could be a description, log output, etc.\r\nThe button doesn't do anything.\r\n  \r\n#### Expected Results:\r\n\r\n  * What did you expect to happen?\r\nPressing the gmail button should allow me to authenticate with gmail.\r\n  \r\n#### Relevant Code:\r\n\r\n```\r\n\r\n    override func viewDidLoad() {\r\n        super.viewDidLoad()\r\n        \r\n        self.hideKeyboard()\r\n        self.emailOrUsernameTextField.delegate = self\r\n        self.passwordTextField.delegate = self\r\n        self.spinner = setupSpinner(view: self.view, inverted: true)\r\n        \r\n        \r\n        // Enable the Google Sign In Button\r\n        GIDSignIn.sharedInstance().uiDelegate = self\r\n        GIDSignIn.sharedInstance().signIn()\r\n    }\r\n\r\nfunc sign(_ signIn: GIDSignIn!, didSignInFor user: GIDGoogleUser!, withError error: Error?) {\r\n  // ...\r\n  if let error = error {\r\n    // ...\r\n    return\r\n  }\r\n\r\n  guard let authentication = user.authentication else { return }\r\n  let credential = GoogleAuthProvider.credential(withIDToken: authentication.idToken,\r\n                                                    accessToken: authentication.accessToken)\r\n  // Authentication logic\r\n}\r\n```"}}
{"actor":{"display_login":"av8ramit"}}