Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signin and all functions throwing task canceled #60

Open
shraddha242 opened this issue Sep 15, 2018 · 3 comments
Open

Signin and all functions throwing task canceled #60

shraddha242 opened this issue Sep 15, 2018 · 3 comments

Comments

@shraddha242
Copy link

I am able to get the google page but once I click on the account ,Status is becoming cancelled.

@claywilkinson
Copy link
Contributor

I encountered this last week as well. It looks like when there is a configuration error the Google SignIn API returns canceled as the error code. In my case, the web client id I was passing in was not for the same app as the android credentials.

3 Things to check:

Confirm the SHA1 of the APK matches the SHA1 of the Android credentials on the API console. You can get the SHA1 by running:
keytool -list -printcert -jarfile <appfile.apk>

Confirm the bundle id matches the same android credential as the SHA1 on the API console. You can get the bundle id from the apk by running:
$ANDROID_HOME/build-tools/27.0.3/aapt dump badging <appfile.apk> | grep package:\ name

The last item to confirm is if you are trying to get an id token, is the web client id it needs to be associated with the sample client id as the android credentials.

@Amila-Rukshan
Copy link

I got the same issue. I have checked the three things but still getting cancelled status on mobile

@Amila-Rukshan
Copy link

Amila-Rukshan commented Sep 22, 2018

I resolved the above issue by myself. When you create a google+ client for android in google console, web client is created automatically. You have to use the web client id in the sample script in unity. Don't use android client's Id. At the first glance two keys seems to be the same but not. : )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants