Why getting "Failed to sign in" for Type-A-Number app (logcat error 10002)?
Hi,
I'm trying to develop an application to use Google Play Services.
I'm using the Type-A-Number app as a starting point.
I've tried a lot of things to try and get AUTH2 authentication working in my app, and am completely lost (several days now) about what to try next.
I've downloaded the Type-A-Number from elitedev app from the Play Store to see how an app is supposed to work, and when I first downloaded it, things worked pretty well. I was able to sign in, sign out, sign in/out between two accounts, acquire achievements, etc.
My phone where I'm testing and developing is older and has Gingerbread UCLD2 (2.3.6). Originally, the phone had two accounts on it, (mine and my wife's). My wife's was the "base" account (the one I couldn't remove without factory reset because it was too integrated into the configuration). I set up my Google account to be a test account for my app I'm developing.
I originally got my app working with the simple auth keystore type and it was working well. Once I got into trying to emulate what the Type-A-Number app was doing in my code, I realized I needed AUTH2 authentication. I went about setting that up and couldn't get it working (tried many things including removing the keys from the developer authentication center).
Stepping back a minute, I tried to just get something working and went back to the Type-A-Number app from elitedev. And, it is now giving me this error:
Failed to sign in. Please check your network connection and try again.
I have verified that my network connection is indeed working. When I open the Google Services "Play Games" app, that app is able to "connect" and show my picture from Google+.
However, I can't get my app nor the Type-A-Number app to be able to log in. Even when I launch the Type-A-Number app from the "Play Games" app, the Type-A-Number app still doesn't work with the error above.
I downloaded the logcat from the phone and I see the following around the time of the problem when trying with the Type-A-Number app. I had to modify some of the "link" stuff in the log because I'm not allowed to post links yet:
01-18 00:48:27.166 V/GLSActivity( 5493): AuthDelegateWrapperCreated with selected intent: Intent { cmp=com.google.android.gms/.auth.DefaultAuthDelegateService }
01-18 00:48:27.166 V/GLSActivity( 5493): AuthDelegateWrapperCreated with selected intent: Intent { cmp=com.google.android.gms/.auth.DefaultAuthDelegateService }
01-18 00:48:27.196 I/GLSUser ( 5493): [GLSUser] getTokenFromGoogle [account: <ELLIDED:810669895>, callingPkg: com.elitedev.games.tanc, service: oauth2:ht (not a link) tps : / / www .googleapis. com / auth / games ht (not a link) tps : / / www .googleapis. com / auth / plus.login
01-18 00:48:27.306 W/Conscrypt( 5493): Cannot find StructTimeval; not setting socket write timeout
01-18 00:48:27.316 W/Conscrypt( 5493): Cannot find StructTimeval; not setting socket write timeout
01-18 00:48:27.496 W/GLSActivity( 5493): gms.StatusHelper Status from wire: INVALID_KEY status: null
01-18 00:48:27.496 I/GLSUser ( 5493): [GLSUser] getAuthtoken(<ELLIDED:810669895>, oauth2:ht (not a link) tps : / / www .googleapis.com / auth / games ht (not a link) tps : / / www .googleapis. com / auth / plus.login) -> status: UNKNOWN)
01-18 00:48:27.496 I/GLSUser ( 5493): [GLSUser] Extracting token using key: Auth
01-18 00:48:27.496 W/GLSActivity( 5493): gms.StatusHelper Status from wire: INVALID_KEY status: null
01-18 00:48:27.506 V/BaseAuthAsyncOperation(10359): access token request failed
01-18 00:48:27.516 W/SignInActivity(11057): onSignInFailed()...
01-18 00:48:27.516 W/SignInActivity(11057): ==> Returning non-OK result: 10002
01-18 00:48:27.546 D/PowerManagerService( 302): acquireDVFSlock : level : 1, timeMS : 3000
01-18 00:48:27.647 D/PowerManagerService( 302): acquireDVFSlock : level : -1, timeMS : 100
I've also done a factory reset on this phone to try and remove my wife's account. After the reset, I get the same problem.
With one account, I get the error immediately. I've added a 2nd Google account that I haven't tried before with Google Play Services, and it gets the same error. I'm hoping if I am able figure out why the Type-A-Number app is failing, that my app is failing for the same reason.
Any ideas?
Regards,
sjmyst
Hi,
I'm trying to develop an application to use Google Play Services.
I'm using the Type-A-Number app as a starting point.
I've tried a lot of things to try and get AUTH2 authentication working in my app, and am completely lost (several days now) about what to try next.
I've downloaded the Type-A-Number from elitedev app from the Play Store to see how an app is supposed to work, and when I first downloaded it, things worked pretty well. I was able to sign in, sign out, sign in/out between two accounts, acquire achievements, etc.
My phone where I'm testing and developing is older and has Gingerbread UCLD2 (2.3.6). Originally, the phone had two accounts on it, (mine and my wife's). My wife's was the "base" account (the one I couldn't remove without factory reset because it was too integrated into the configuration). I set up my Google account to be a test account for my app I'm developing.
I originally got my app working with the simple auth keystore type and it was working well. Once I got into trying to emulate what the Type-A-Number app was doing in my code, I realized I needed AUTH2 authentication. I went about setting that up and couldn't get it working (tried many things including removing the keys from the developer authentication center).
Stepping back a minute, I tried to just get something working and went back to the Type-A-Number app from elitedev. And, it is now giving me this error:
Failed to sign in. Please check your network connection and try again.
I have verified that my network connection is indeed working. When I open the Google Services "Play Games" app, that app is able to "connect" and show my picture from Google+.
However, I can't get my app nor the Type-A-Number app to be able to log in. Even when I launch the Type-A-Number app from the "Play Games" app, the Type-A-Number app still doesn't work with the error above.
I downloaded the logcat from the phone and I see the following around the time of the problem when trying with the Type-A-Number app. I had to modify some of the "link" stuff in the log because I'm not allowed to post links yet:
01-18 00:48:27.166 V/GLSActivity( 5493): AuthDelegateWrapperCreated with selected intent: Intent { cmp=com.google.android.gms/.auth.DefaultAuthDelegateService }
01-18 00:48:27.166 V/GLSActivity( 5493): AuthDelegateWrapperCreated with selected intent: Intent { cmp=com.google.android.gms/.auth.DefaultAuthDelegateService }
01-18 00:48:27.196 I/GLSUser ( 5493): [GLSUser] getTokenFromGoogle [account: <ELLIDED:810669895>, callingPkg: com.elitedev.games.tanc, service: oauth2:ht (not a link) tps : / / www .googleapis. com / auth / games ht (not a link) tps : / / www .googleapis. com / auth / plus.login
01-18 00:48:27.306 W/Conscrypt( 5493): Cannot find StructTimeval; not setting socket write timeout
01-18 00:48:27.316 W/Conscrypt( 5493): Cannot find StructTimeval; not setting socket write timeout
01-18 00:48:27.496 W/GLSActivity( 5493): gms.StatusHelper Status from wire: INVALID_KEY status: null
01-18 00:48:27.496 I/GLSUser ( 5493): [GLSUser] getAuthtoken(<ELLIDED:810669895>, oauth2:ht (not a link) tps : / / www .googleapis.com / auth / games ht (not a link) tps : / / www .googleapis. com / auth / plus.login) -> status: UNKNOWN)
01-18 00:48:27.496 I/GLSUser ( 5493): [GLSUser] Extracting token using key: Auth
01-18 00:48:27.496 W/GLSActivity( 5493): gms.StatusHelper Status from wire: INVALID_KEY status: null
01-18 00:48:27.506 V/BaseAuthAsyncOperation(10359): access token request failed
01-18 00:48:27.516 W/SignInActivity(11057): onSignInFailed()...
01-18 00:48:27.516 W/SignInActivity(11057): ==> Returning non-OK result: 10002
01-18 00:48:27.546 D/PowerManagerService( 302): acquireDVFSlock : level : 1, timeMS : 3000
01-18 00:48:27.647 D/PowerManagerService( 302): acquireDVFSlock : level : -1, timeMS : 100
I've also done a factory reset on this phone to try and remove my wife's account. After the reset, I get the same problem.
With one account, I get the error immediately. I've added a 2nd Google account that I haven't tried before with Google Play Services, and it gets the same error. I'm hoping if I am able figure out why the Type-A-Number app is failing, that my app is failing for the same reason.
Any ideas?
Regards,
sjmyst