gidsignin

Custom scheme URIs are not allowed for 'Web' client type - Google with Firebase

折月煮酒 提交于 2020-01-03 17:11:20
问题 I am trying to implement google sign in using firebase in to my iOS app. I follow this tutorial. https://firebase.google.com/docs/auth/ios/google-signin I have setup the iOS app in firebase and use the google clientID and reversedClientID from the dowloaded GoogleService-Info.plist. FYI: I have a custom sign-in button instead of the google sign in button. Anyway when i click the sign in button, google following error display in a webview. I know my problem is the same as which described in

Swift: Go to other view controller after Google Sign In

守給你的承諾、 提交于 2019-12-24 20:34:21
问题 After users successfully signing in, I want the screen to show the tab controller view automatically. Now I finished the integrating Google Sign In part. But after signing in, the view return to the initial View Controller. My storyboard looks like this, the blue View inside the initial View Controller is the Google Sign In button. Below's my didSignInFor function: func sign(_ signIn: GIDSignIn!, didSignInFor user: GIDGoogleUser!, withError error: Error!) { if let error = error { print("\

Google multiple login using GIDSignin

半世苍凉 提交于 2019-12-13 12:24:28
问题 I can do authentication for single account using GIDSignIn by below code. GIDSignIn *googleSignIn = [GIDSignIn sharedInstance]; googleSignIn.delegate = self; googleSignIn.uiDelegate = self; googleSignIn.clientID = (NSString*)cGmailAppClientId; googleSignIn.scopes = [self getGmailAuthenticationScopes];; [googleSignIn signIn]; But GIDSignIn is shared instance. It is for an only one account. How can I add multiple accounts? Multiple accounts should accessible concurrently (Ex getting access

GIDSignIn set approval_prompt

一世执手 提交于 2019-12-10 18:39:44
问题 The problem is that Google asking for offline access only after user has logged out of app and logs in back. Reading this and some other articles I found out that 'approval_prompt' parameter should be set to 'auto', however I can't find how to set it for GIDSignIn. Am I missing something? 来源: https://stackoverflow.com/questions/35418187/gidsignin-set-approval-prompt

GIDSignIn iOS 9

醉酒当歌 提交于 2019-12-09 13:17:24
问题 Using Googles SignIn in my AppDelegate I have func application(application: UIApplication, openURL url: NSURL, sourceApplication: String?, annotation: AnyObject?) -> Bool { return GIDSignIn.sharedInstance().handleURL(url, sourceApplication: sourceApplication, annotation: annotation) } But that function is deprecated as of iOS 9 for application:openURL:options: How to return GIDSignIn.sharedInstance().handleURL(url, sourceApplication: sourceApplication, annotation: annotation) Using the new

How to customize google sign in button?

老子叫甜甜 提交于 2019-12-08 07:34:05
问题 1) When I created a UIView which has size (x, y), and made its type GIDSignInButton , it shows up a Google Sign In button in the size (z, t) where z < x and t < y . Why? How can I make it show a Google Sign In button with size (x, y)? 2) I added Google Sign In SDK with CocoaPods. How can I set the alignment of the text in the Google Sign In button? How can I set the font size? I added Google Sign In button as described in the Google's doc. 回答1: Customize GIDSignInButton For your both

gidsignin with swift and firebase: Checking if the user is a new or returning user

坚强是说给别人听的谎言 提交于 2019-12-08 05:09:57
问题 I have written an app that sign's a user in by using the google signin package and firebase. I would like to write some functionality which would be if the user has signed into the app using google previously then take them straight to the main ViewController otherwise they must be signing in for the first time then bring to a view controller to create a profile I essentially just want a condition which returns true/false if the user has signed into the app previously, and returns the

GIDSignIn keychain error iOS 10 Xcode 8

对着背影说爱祢 提交于 2019-12-06 17:33:36
问题 In iOS 10 and xcode 8 when I try to sign in to google services I get "keychain error" func sign(_ signIn: GIDSignIn!, didSignInFor user: GIDGoogleUser!, withError error: Error!){ if error != nil { print("\(error!.localizedDescription)") } } Offered and accepted solutions on SO are to run the app direct from simulator and not via Xcode. This I have tried and have had no success hence posting this question here in the hope someone has a more recent solution or experience. 回答1: The problem you

How to customize google sign in button?

不问归期 提交于 2019-12-06 14:46:50
1) When I created a UIView which has size (x, y), and made its type GIDSignInButton , it shows up a Google Sign In button in the size (z, t) where z < x and t < y . Why? How can I make it show a Google Sign In button with size (x, y)? 2) I added Google Sign In SDK with CocoaPods. How can I set the alignment of the text in the Google Sign In button? How can I set the font size? I added Google Sign In button as described in the Google's doc. Manan Devani Customize GIDSignInButton For your both questions: Google doesn't allow us to customise the GIDSignInButton in every way. But There are some

Google multiple login using GIDSignin

吃可爱长大的小学妹 提交于 2019-12-04 23:08:27
I can do authentication for single account using GIDSignIn by below code. GIDSignIn *googleSignIn = [GIDSignIn sharedInstance]; googleSignIn.delegate = self; googleSignIn.uiDelegate = self; googleSignIn.clientID = (NSString*)cGmailAppClientId; googleSignIn.scopes = [self getGmailAuthenticationScopes];; [googleSignIn signIn]; But GIDSignIn is shared instance. It is for an only one account. How can I add multiple accounts? Multiple accounts should accessible concurrently (Ex getting access token). Related SO question doesn't give correct idea. I don't think GIDSignIn supports multiple accounts.