google-signin

How to properly use google signIn with SwiftUI

旧巷老猫 提交于 2021-01-04 07:47:05
问题 When I'm trying to sign in and on the next view sign out with GIDSignIn and navigate to previous view everything is fine, but when I'm trying to sign in again, the alert ask App wants to use google sign in , when I press continue - I have an error says: Keyboard cannot present view controllers (attempted to present ) and the next error First responder error: non-key window attempting reload - allowing due to manual keyboard (first responder window is >, key window is ; layer = >) My code

Google Sign In throws an exception com.google.android.gms.common.api.ApiException: 12500

半世苍凉 提交于 2020-12-13 03:33:46
问题 I have a simple application written in Android, where I want to do Google Sign and then Firebase Authentication. I copy paste the code from official page. val gso = GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) .requestIdToken(getString(R.string.default_web_client_id)) .requestEmail() .build() if (requestCode == REQUEST_CODE_GOOGLE_SIGN_IN) { val task = GoogleSignIn.getSignedInAccountFromIntent(data) try { // Google Sign In was successful, authenticate with Firebase val

Flutter: Google sign in caused a black line running across screen

大憨熊 提交于 2020-12-12 04:15:50
问题 I have my code as following for Google Sign in: // google sign in GoogleSignIn _googleSignIn = GoogleSignIn( scopes: [ 'email', ], ); final GoogleSignInAccount googleUser = await _googleSignIn.signIn(); final GoogleSignInAuthentication googleAuth = await googleUser.authentication; // get firebase user final AuthCredential credential = GoogleAuthProvider.getCredential( accessToken: googleAuth.accessToken, idToken: googleAuth.idToken); firebaseUser = (await _firebaseAuth.signInWithCredential

Android: Google Sign In - difference between 'DEFAULT_SIGN_IN' and 'DEFAULT_GAMES_SIGN_IN'

℡╲_俬逩灬. 提交于 2020-12-06 06:54:16
问题 I am trying to implement a Google Sign In into my app in AndroidStudio. I have it working with: GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN).requestEmail().requestServerAuthCode(clientID).build(); I have my client ID correctly set up to the Web Application Client ID from the API console and SHA1 is definitely set up correctly. When i change to this (using DEFAULT_GAMES_SIGN_IN instead): GoogleSignInOptions gso = new GoogleSignInOptions.Builder

Customize Google SignInButton In Android

本小妞迷上赌 提交于 2020-12-05 07:19:39
问题 I want to customise Google SignIn Button In Android. Currently I have a very basic default layout by using following code. <com.google.android.gms.common.SignInButton android:id="@+id/sign_in_button" android:layout_width="match_parent" android:layout_height="wrap_content"/> I am not satisfied with the current button layout. Is it possible to update the button text, background colour in the default button, Or Should I create full custom button layout? Thank you. ps: I am new to Android 回答1:

Customize Google SignInButton In Android

夙愿已清 提交于 2020-12-05 07:19:12
问题 I want to customise Google SignIn Button In Android. Currently I have a very basic default layout by using following code. <com.google.android.gms.common.SignInButton android:id="@+id/sign_in_button" android:layout_width="match_parent" android:layout_height="wrap_content"/> I am not satisfied with the current button layout. Is it possible to update the button text, background colour in the default button, Or Should I create full custom button layout? Thank you. ps: I am new to Android 回答1:

Customize Google SignInButton In Android

六月ゝ 毕业季﹏ 提交于 2020-12-05 07:19:01
问题 I want to customise Google SignIn Button In Android. Currently I have a very basic default layout by using following code. <com.google.android.gms.common.SignInButton android:id="@+id/sign_in_button" android:layout_width="match_parent" android:layout_height="wrap_content"/> I am not satisfied with the current button layout. Is it possible to update the button text, background colour in the default button, Or Should I create full custom button layout? Thank you. ps: I am new to Android 回答1: