google-signin

Google OAuth via gapi.signin2.render button not hitting callbacks in react app

佐手、 提交于 2020-01-05 07:37:04
问题 I have the Google Signin Button properly rendering inside my react component using the gapi.signin2.render method on the latest Google platform web-client api (https://apis.google.com/js/platform.js). But, for the life of me, I can't get it to properly call my success or failure callbacks. The button renders, clicking the button opens the account auth window, clicking a Google account closes the window, but no callback. function myCallback(obj) { console.log(obj); } gapi.signin2.render('my

GoogleSignIn - Always return “The user canceled the sign-in flow.” in IOS 11

不打扰是莪最后的温柔 提交于 2020-01-04 09:22:27
问题 I try to use GoogleSignIn in my project, but I have problem when call GIDSignIn.sharedInstance().signIn() I received warning below: [Warning] Attempting to load the view of a view controller while it is deallocating is not allowed and may result in undefined behavior (<SFAuthenticationViewController: 0x7fccba008c00>) And in "GIDSignInDelegate", always had error "The user canceled the sign-in flow." func sign(_ signIn: GIDSignIn!, didSignInFor user: GIDGoogleUser!, withError error: Error?) {}

iOS Rejection due to Google SignIn. Latest Google SignIn (4.0.0) goes to safari

送分小仙女□ 提交于 2020-01-04 05:42:10
问题 our app got rejected by apple for Design - 4.0 We noticed that the user is taken to Safari to sign in or register for an account when logging in with Google+, which provides a poor user experience. Next Steps Please revise your app to enable users to sign in with Google+ in the app. You can do this by updating to the latest Google+ SDK. We recommend implementing the Safari View Controller API to display web content within your app. The Safari View Controller allows the display of a URL and

Trouble signing out with Google Sign in (gapi) with angularjs

时光毁灭记忆、已成空白 提交于 2020-01-04 03:13:32
问题 So I have tried the following templates trying to integrate this: HTML : <google-sign-in-button button-id="login-button" options="options"></google-sign-in-button> CSS : .directive('googleSignInButton', function() { return { scope: { buttonId: '@', options: '&' }, template: '<div></div>', link: function(scope, element, attrs) { var div = element.find('div')[0]; div.id = attrs.buttonId; gapi.signin2.render(div.id, scope.options()); } }; }) -- I've also just tried doing this in the header and

TypeScript bindings for google web signin

人盡茶涼 提交于 2020-01-03 17:51:32
问题 I'm building an angular2/typescript app. I see that google put out platform.js which gives access to the gapi var as shown here on the google signin for websites. That works great, but I am having a lot of trouble getting that into typescript. TS relies on .d.ts files to import javascript. Are there any typescript bindings for the new gapi that google put out? There is this version of gapi from DefinitelyTyped/gapi, but it is outdated. I've considered writing my own typings definition for the

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

Google Sign In not working after published in playstore

浪尽此生 提交于 2020-01-03 14:17:33
问题 Before publishing in the play store my google sign was working fine. I saw some questions here in stackoverflow, but none of them answered my question. I don't know why the login is not working anymore. (I'm not using firebase). I did all the steps to make the google sign work, and it was working before I published. Anyone knows what is happening? What can I do? 回答1: This is due to different SHA1 keys for debug and release version. The thing is that for google sign in you must add SHA1 key in

Only fetch email using google-signin

我只是一个虾纸丫 提交于 2020-01-03 05:26:07
问题 I'm using the google sign-in example from https://developers.google.com/identity/sign-in/web/ (code pasted below for posterity). <html lang="en"> <head> <meta name="google-signin-scope" content="profile email"> <meta name="google-signin-client_id" content="YOUR_CLIENT_ID.apps.googleusercontent.com"> <script src="https://apis.google.com/js/platform.js" async defer></script> </head> <body> <div class="g-signin2" data-onsuccess="onSignIn" data-theme="dark"></div> <script> function onSignIn

Google Sign-in in Internet Explorer / Edge

风流意气都作罢 提交于 2020-01-02 22:03:02
问题 I am attempting to get a hello world google sign-in going. The code below has worked in Chrome and Firefox, but fails to work in Edge or IE 11. It is the most basic example from the official google site. <!DOCTYPE html> <html> <head> <meta name="google-signin-client_id" content="533332380921-7m8eoi4968kvl1mmr0kk3clco25loemg.apps.googleusercontent.com"> </head> <body> <div id="my-signin2"></div> <script> function onSuccess(googleUser) { console.log('Logged in as: ' + googleUser.getBasicProfile

GoogleMobileVision GoogleSignIn duplicate symbol using Cocoapods?

﹥>﹥吖頭↗ 提交于 2020-01-02 20:11:10
问题 I am using CocoaPods to add two frameworks. target 'TestGoogleLib' do # Comment the next line if you're not using Swift and don't want to use dynamic frameworks use_frameworks! # Pods for TestGoogleLib pod 'GoogleMobileVision' pod 'GoogleSignIn' end But when I run - I get duplicate error. It seems both framework are using same file. My Pod version is 1.5.3 duplicate symbol _OBJC_IVAR_$_MDMPasscodeCache._localAuthenticationInfo in: ld: 13 duplicate symbols for architecture x86_64 clang: error: