googlesigninapi

GIDSignIn.sharedInstance().currentUser nil when relaunching app

孤者浪人 提交于 2019-12-22 12:27:08
问题 Initially I was having a problem with the check to see if we have saved data into the keychain. I found this post and followed the suggestion by BhavinBhadani: Whenever you check if ([GIDSignIn sharedInstance].hasAuthInKeychain) , before that add your sign in scopes.. https://github.com/googlesamples/google-services/issues/27 This has solved my first problem of GIDSignIn.sharedInstance().hasAuthInKeychain() returning true after the user has logged in successfully before and then has killed

Check whether the user is already logged in using Auth.GoogleSignInApi?

时间秒杀一切 提交于 2019-12-22 05:13:59
问题 I fount that in order to sign in the user I have to use this code: Intent signInIntent = Auth.GoogleSignInApi.getSignInIntent(mGoogleApiClient); startActivityForResult(signInIntent, RC_SIGN_IN); to signout new ResultCallback<Status>() { @Override public void onResult(Status status) { disconnect(); } }); But when the user relaunch the app and he is already logged in (and no sign out before) is it possible to detect this 'currently logged in' state? Obviously, it is possible to save 'logged in'

App Closes On Clicking Google SIgn In Button

僤鯓⒐⒋嵵緔 提交于 2019-12-14 03:49:41
问题 I was trying to integrate google sign in into my app. When I clicked the button, the app closes(not crashes). What's the mistake I'm making here? I Tried my best to follow what the google developers site told me. I apologise in advance for the long code. My Java Code : import static com.google.android.gms.common.SignInButton.COLOR_DARK; public class User_Name extends AppCompatActivity implements GoogleApiClient.OnConnectionFailedListener{ private PrefManager2 prefManager; SignInButton

How to fetch user's profile photo from Google (and not from Google+)?

我们两清 提交于 2019-12-12 06:28:32
问题 Using the Google+ api I am able to fetch all the information about user profile and the way I'm doing it is by calling a GET on the following address: https://www.googleapis.com/plus/v1/people/11812536713708...432 ?key=AIzaSyC_bs...gds353le Here I'm putting user profile id (google id of the user) and my api key. Now there are two cases: 1) user set up a google+ profile before and then I'm getting a json file with all necessary data (such as his profile photo, name, etc.) 2) user didn't set up

PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null)

眉间皱痕 提交于 2019-12-11 19:07:29
问题 I've searched the whole internet, tried every possible solution, still I'm not being able to sign in using GoogleSignIn from my flutter app. Things I've tried : 1. Added SHA-1 Certificate 2. Added SHA-256 Certificate 3. Filled O-Auth Screen 4. Enabled GoogleSignIn in firebase 5. Added support email Testing currently only in debug mode. As the app is in its initial stages right now I don't want to build a release version yet. Using debug SHA-1 and SHA-256 fingerprints. Future<FirebaseUser>

PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null) when using Flutter to build an appbundle

南笙酒味 提交于 2019-12-11 14:29:43
问题 I'm building a Flutter app with firebase_auth and google_sign_in. Everything was working well for a while and all of my existing users on the released product have not experienced any problems, but a while back I started getting reports that new users couldn't log in. I didn't think much of it until the reports started to accumulate. I found that they were getting the error posted in the title. I spent a ton of time investigating... I've gone through all of the other StackOverflow entries for

Authorize youtube data api request using google sign in api

别说谁变了你拦得住时间么 提交于 2019-12-11 07:57:02
问题 i am trying to authorize a youtube data request (scope) using google sing in api. Google Sign In works perferct inside my app and i am getting logged in. How do I use the result of the google sign in api to send a request to a youtube data api scope? My Sign In: GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) .requestScopes(new Scope("https://www.googleapis.com/auth/youtube")) .build(); api = new GoogleApiClient.Builder(main.getApplicationContext

Google SignIn for iOS fails to build because it's looking for a file that doesn't exist

馋奶兔 提交于 2019-12-11 00:16:05
问题 Google just updated their sign in library for ios to version 3.0.0. In the process, it looks like they also caused the library to fail to build with the error ld: file not found: MY_APP_PATH/Pods/GoogleUtilities/Libraries/libGTM_NSData+zlib.a What can I do to solve this? I'm using Cocoapods. 回答1: I mostly made this question so that there's a google-able answer on how to fix this issue. Like I stated in the question above, the issue is caused by the March 22 2016 v3.0.0 update of the Google

GIDSignIn.sharedInstance().currentUser nil when relaunching app

末鹿安然 提交于 2019-12-06 12:08:05
Initially I was having a problem with the check to see if we have saved data into the keychain. I found this post and followed the suggestion by BhavinBhadani: Whenever you check if ([GIDSignIn sharedInstance].hasAuthInKeychain) , before that add your sign in scopes.. https://github.com/googlesamples/google-services/issues/27 This has solved my first problem of GIDSignIn.sharedInstance().hasAuthInKeychain() returning true after the user has logged in successfully before and then has killed app and re runs. However now I am doing the following: let signIn = GIDSignIn.sharedInstance() signIn

Google Sign in API - get photo Uri is null

时间秒杀一切 提交于 2019-12-06 04:30:42
问题 I was using Google Sign in API to request user profile, likes user display name, avatar photo. I got null value GoogleSignInAccount.getPhotoUrl(), got value GoogleSignInAccount.getDisplayName(). Gmail account ok, but private account is not. private account is linked to Google gmail, it can see the picture in my Gmail account and Google Play store app, Google plus too. but why I got null value with using Google Sign In account API. GoogleSignInOptions.Builder builder = new GoogleSignInOptions