googlesigninaccount

Google Sign in doesn't return any result when 'Use another account' to sign in

岁酱吖の 提交于 2019-12-05 01:08:33
问题 This seems to be a basic feature but after following the signing-in tutorial, it only works if I choose the account that is already registered on the device. After choosing ' Use another account ' and completing some steps to authenticate it looses the call-back result, ( onActivityResult is not called ). I use GoogleSignInOptions : no exception occurs and I can't add any listener to detect exceptions. However, GoogleApiClient works fine but there are some deprecated methods, thus I decided

Google Sign In - GoogleIdTokenVerifier verifies token with delay

天大地大妈咪最大 提交于 2019-12-04 14:31:55
I have implemented back-end which receives Google Sign In token from Android or iOS device and tries to verify it. Code has worked properly few months ago, it has not changed but recently it began to reject all tokens as invalid. When I try to repeat verification again with previously failed token after ~10s of its issue time, it begins to work and returns user information. Why does it happen? try { GoogleIdTokenVerifier verifier = new GoogleIdTokenVerifier.Builder(new NetHttpTransport(), new JacksonFactory()).setIssuer(ISSUER).build(); GoogleIdToken idToken = verifier.verify(token); if

Use authorized Google Cloud Endpoints with Google Sign in

£可爱£侵袭症+ 提交于 2019-12-04 07:18:41
I have an app that uses Google Cloud Endpoints. Some methods need authorization so I followed this tutorial. This requires the GET_ACCOUNTS permissions. I am updating the app to work with runtime permissions. I do not like to request permission to read contacts, but GET_ACCOUNTS is in the same group. Because of this I am looking to use authorization without GET_ACCOUNTS permission. I think that Google Sign In could work but I am unable to find a way to use the result from Google Sign In. This is the code used to create the object to make the calls to the endpoint: Helloworld.Builder helloWorld

Google Sign in doesn't return any result when 'Use another account' to sign in

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 16:37:13
This seems to be a basic feature but after following the signing-in tutorial , it only works if I choose the account that is already registered on the device. After choosing ' Use another account ' and completing some steps to authenticate it looses the call-back result, ( onActivityResult is not called ). I use GoogleSignInOptions : no exception occurs and I can't add any listener to detect exceptions. However, GoogleApiClient works fine but there are some deprecated methods, thus I decided to switch to GoogleSignInOptions to avoid deprecation issues. Initizlization: googleSignInOptions = new

Crash inside GoogleSignInAccount in latest PlayServices 8.3

混江龙づ霸主 提交于 2019-12-03 15:43:30
问题 The latest release on play services (8.3) has an issue related to GoogleSignInAccount. We received a crash generated from it. Here it is the stacktrace. Android: 4.4.4 Manufacturer: Sony Model: D5503 Date: Thu Nov 12 16:36:06 GMT-08:00 2015 java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=40962, result=-1, data=Intent { (has extras) }} to activity {com.spreaker.android/com.google.android.gms.auth.api.signin.internal.SignInHubActivity}: java.lang

Crash inside GoogleSignInAccount in latest PlayServices 8.3

纵饮孤独 提交于 2019-12-03 05:12:43
The latest release on play services (8.3) has an issue related to GoogleSignInAccount. We received a crash generated from it. Here it is the stacktrace. Android: 4.4.4 Manufacturer: Sony Model: D5503 Date: Thu Nov 12 16:36:06 GMT-08:00 2015 java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=40962, result=-1, data=Intent { (has extras) }} to activity {com.spreaker.android/com.google.android.gms.auth.api.signin.internal.SignInHubActivity}: java.lang.NullPointerException at android.app.ActivityThread.deliverResults(ActivityThread.java:3455) at android.app

Google Sign In error Status{statusCode=DEVELOPER_ERROR, resolution=null} from same play store app not from same signed apk

你说的曾经没有我的故事 提交于 2019-12-01 05:11:36
I think this is a bug in android, android studio or google. I am able to login to google through the signed apk. But If I upload the same apk on play store it says me Status{statusCode=DEVELOPER_ERROR, resolution=null} . I want to know how can it be possible that I am not able to login from the app downloaded from the Play Store and I am able to login when I use the same apk from my PC which I have uploaded to play store. This should not be DEVELOPER_ERROR this should be ANDROID_ERROR, GOOGLE_ERROR or HOW_TO_IRRITATE_DEVELOPER_BY_ANDROID. Any suggestions on how to resolve this ANDROID_ERROR

Google Sign In error Status{statusCode=DEVELOPER_ERROR, resolution=null} from same play store app not from same signed apk

痞子三分冷 提交于 2019-12-01 02:30:02
问题 I think this is a bug in android, android studio or google. I am able to login to google through the signed apk. But If I upload the same apk on play store it says me Status{statusCode=DEVELOPER_ERROR, resolution=null} . I want to know how can it be possible that I am not able to login from the app downloaded from the Play Store and I am able to login when I use the same apk from my PC which I have uploaded to play store. This should not be DEVELOPER_ERROR this should be ANDROID_ERROR, GOOGLE

com.google.android.gms.common.api.ApiException: 16:

我怕爱的太早我们不能终老 提交于 2019-11-29 14:53:11
问题 I try to learn how i can use google sign in in my android App, but i catch com.google.android.gms.common.api.ApiException: 16 And i can't find on stackoveflow answer, what is it and why i catch it. In documentation i read, what it "was canceled by user", but my google account accepted to install apps import android.support.v7.app.AppCompatActivity import android.os.Bundle import android.util.Log import com.google.android.gms.auth.api.signin.GoogleSignIn import com.google.android.gms.auth.api

Silent sign in to retrieve token with GoogleApiClient

浪子不回头ぞ 提交于 2019-11-27 21:16:42
I am using "Google Sign-In" in my app. Hence I use the class GoogleApiClient to get the user email and the ID token that I need for my backend. When the user signs in, then I have access to an Activity (of course) and I use that Activity to let the GoogleApiClient handle the UI lifecycle stuff by calling builder.enableAutoManage(myActivity, ...) This works fine. However, at a later stage (several days later), I need to get a new token (for some reason that I will not go into further here). I want to get this token silently without user interaction. However, at the point in my code where I need