google-signin

Initiate Google sign in on button click

↘锁芯ラ 提交于 2019-12-12 10:33:51
问题 Hello I am using google api to sign in to my web application . Now Its working fine . But the problem is the sigin is initiated automatically as I go to my log in page . But I do not want that . I want the user to click the signin button first then the process will start . I am using below button <div class="g-signin2" data-onsuccess="onSignIn"></div> and google log in references . 回答1: Use 'attachClickHandler' to Initiate Google Sign In. <script src="https://apis.google.com/js/client

Can't change custom class of UIButton to GIDSignInButton

旧城冷巷雨未停 提交于 2019-12-12 10:33:40
问题 I'm trying to add Google sign in functionality to a custom button, and I'm following this tutorial. It's telling me to select the button, and set its class as GIDSignInButton , then add this code: @IBOutlet weak var signInButton: GIDSignInButton! . However, it doesn't let me set the class to GIDSignInButton . When I type it in and press enter, the field just clears. 回答1: The workaround is open the storyboard in text mode and put it directly. When you return to the interface builder it will

Deprecated Plus.PeopleApi.load

穿精又带淫゛_ 提交于 2019-12-12 08:53:02
问题 Now that Plus.API is deprecated in Google Play Services 9.4, what is correct way to get Google Plus circles for authenticated user on Android Application? Now We have deprecated method of loading plus users Plus.PeopleApi.load New documentation says: If your app needs social information and more extensive profile data, check out the Android Contacts Provider or the cross-platform People API. So I should go with Android Contacts Provider that seems to be a hard alternative (Because I have to

Retrieve google user from ios extension

拈花ヽ惹草 提交于 2019-12-12 08:18:27
问题 I am trying to create a share extension for my application which requires to login to Google from the extension. I've setup the sharing group keychain and am able to write from the main application and read the extension target. But I can't login to Google from the extension because GIDSignIn.sharedInstance().hasAuthInKeychain() always returns false. Is there any way to login to Google from an extension and how do I do that? Any help would be appreciated. 回答1: 1. In Bridging-Header.h import

Use external google-services.json file in library

℡╲_俬逩灬. 提交于 2019-12-12 08:06:10
问题 I'm sharing a single login module across my apps, with a LoginActivity that handles both Facebook and Google auth (logic + UI). Now, with Facebook it's easy to specify a different ID for each app, overriding the library's facebook_app_id string in the app module. I didn't find a way to do the same with Google Sign-In because it requires a google-services.json file. In fact, the build fails if I include the file in the app modules and not in the login library. Error:Execution failed for task '

Android Google Plus sign in issue. handleSignInResult returns False

半城伤御伤魂 提交于 2019-12-12 07:14:52
问题 I've been facing some issues while integrating Google+ Signin functionality. So far, i've integrated all the necessary G+ Sign in API modules and codes which works good, generated and placed the google-services.json within /app after generating SHA1 using keytool of debug.keystore and pasted the SHA1 on the google cloud developer console, but now there's only one glitch i am facing since many days/weeks i.e. when i try to do device debuggin and whenever i click on "G+ Sign In" i get the

Google sign in website Error : Permission denied to generate login hint for target domain

混江龙づ霸主 提交于 2019-12-12 07:12:51
问题 I am trying to integrate Google login in my website .. I am following this example: https://developers.google.com/identity/sign-in/web/ I generated client id for my project and replaced it in above code, I keep getting this error: That’s an error. Error: invalid_request Permission denied to generate login hint for target domain. 回答1: I ran into this issue while doing local development. Make sure when running your project locally that you launch "http://localhost" rather than "http://127.0.0.1

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

Google sign in using firebase working on emulator but not on real device?

删除回忆录丶 提交于 2019-12-12 05:49:43
问题 Sign in works perfectly in emulator but it is always failing on my real android phones. task.isSuccessful() always returns a false result in my real device but no problem when I am using the emulator. package com.inc.mountzoft.goldencompass; import android.content.Intent; import android.support.annotation.NonNull; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Toast; import com.google.android

Getting obscure error when using Google sign-in in Android

给你一囗甜甜゛ 提交于 2019-12-12 04:46:38
问题 I'm getting com.google.android.gms.common.api.ApiException: 10: when trying to use Google sign-in. Here is the code itself: @Override public void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); // Result returned from launching the Intent from GoogleSignInClient.getSignInIntent(...); if (requestCode == RC_SIGN_IN) { // The Task returned from this call is always completed, no need to attach // a listener. Task