GithubHelp home page GithubHelp logo

something went wrong about capacitorgoogleauth HOT 16 OPEN

GOLHS avatar GOLHS commented on June 18, 2024
something went wrong

from capacitorgoogleauth.

Comments (16)

alon42 avatar alon42 commented on June 18, 2024 2

Finally managed to make it work!!
Ionic - vue

  1. under android/app/build.gradle make sure to change applicationId and have your UNIQUE application ID
  2. run cd android > ./gradlew signInReport
    Scroll all the way up(!!!!) and copy the sha1 key of the debug varient
  3. open your browser with https://console.cloud.google.com/apis/credentials
    create android(!) credentials,
    VERY IMPORTANT:
    use the same applicationId from android/app/build.gradle and use the SHA1.
    save...

WE ARE NOT GOING TO USE THE ANDROID KEY BUT WITHOUT IT CapacitorGoogleAuth WILL NOT WORK.

in your app just use your web credentials (!!!)

Error 10 comes from Google API exception, and it signals that the android package name and sha1 are not valid

from capacitorgoogleauth.

malvinder avatar malvinder commented on June 18, 2024

Facing the same issue with error code 10
I have tried all the web client id, server client id, android client id and everything, replacing them with each other.
Still the same error.

from capacitorgoogleauth.

agnusdei1207 avatar agnusdei1207 commented on June 18, 2024

I also faced the same problem

from capacitorgoogleauth.

agnusdei1207 avatar agnusdei1207 commented on June 18, 2024

just now i clear it that issue!

https://velog.io/@agnusdei1207/angular-ionic-capacitor-google-oauth2-plugin-feat.-android-ios

sha-1 key issue..!
only use android studio tool gradle and use gradle signingReport

The sha-1 key continues to change depending on how it is generated.
The most stable method is the above method.

from capacitorgoogleauth.

RobinRosculete avatar RobinRosculete commented on June 18, 2024

Facing the same issue. Not sure what it is as it was working before. Did anybody find a solution?

image

from capacitorgoogleauth.

alon42 avatar alon42 commented on June 18, 2024

Same problem here...
Couldn't find any solution yet.

@RobinRosculete

from capacitorgoogleauth.

Naza2021 avatar Naza2021 commented on June 18, 2024

I was struggling with this error for hours!!! But then, while checking the demo and following the readme.md, I realized that I was missing a configuration in a file: android/app/src/main/res/values/strings.xml

In the demo, you can find it at: https://github.com/CodetrixStudio/CapacitorGoogleAuth/blob/master/demo/android/app/src/main/res/values/strings.xml

Once I added the with the Google clientId, everything started to work :)

Good day <3

from capacitorgoogleauth.

bobbyg603 avatar bobbyg603 commented on June 18, 2024

Thank you @alon42, this worked for me. To further clarify step 2 for the next person the SHA1 I needed was specifically the one under > Task :app:signingReport.

from capacitorgoogleauth.

RobinRosculete avatar RobinRosculete commented on June 18, 2024

Thank you so much @alon42, It finally worked !

from capacitorgoogleauth.

kristophbarbour avatar kristophbarbour commented on June 18, 2024

I have done all of the above and even followed @agnusdei1207 's awesome instructions and still I get Something went wrong Error 10.
Has anyone else found any other solutions?

from capacitorgoogleauth.

alon42 avatar alon42 commented on June 18, 2024

@kristophbarbour
Error 10 comes from the Google API itself.

I was desperate enough to find its source code when I searched for this problem 3 weeks ago, and it comes from having bad Android credentials. when there is something wrong with your ApplicationId with the SHA1.

make sure you are using:

a. google WEB credentials in the Capacitor config.
b. you created an android credentials WITHOUT using them.
b1. Under Android credentials, you use a unique Application Id (I failed there) from android/app/build.gradle.
b2. you are using the correct SHA from the output of cd android and then ./gradlew signInReport.
b3. you wait enough time to let the cache in Google servers clear itself (they day 5 minutes).

from capacitorgoogleauth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.