Comments (16)
Finally managed to make it work!!
Ionic - vue
- under
android/app/build.gradle
make sure to changeapplicationId
and have your UNIQUE application ID - run
cd android
>./gradlew signInReport
Scroll all the way up(!!!!) and copy the sha1 key of the debug varient - open your browser with https://console.cloud.google.com/apis/credentials
create android(!) credentials,
VERY IMPORTANT:
use the sameapplicationId
fromandroid/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.
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.
I also faced the same problem
from capacitorgoogleauth.
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.
Facing the same issue. Not sure what it is as it was working before. Did anybody find a solution?
from capacitorgoogleauth.
Same problem here...
Couldn't find any solution yet.
from capacitorgoogleauth.
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.
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.
Thank you so much @alon42, It finally worked !
from capacitorgoogleauth.
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.
@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)
- Not working for Android HOT 1
- Android Error Code: 10 HOT 5
- popup_closed_by_user issue on Chrome or Safari HOT 2
- bug: Property 'GoogleAuth' is missing in type
- Package not found: com.codetrixstudio.capacitor.GoogleAuth.capacitorgoogleauth HOT 2
- Warnings for deprecated getConfigValue method (iOS) HOT 4
- GoogleAuth.signIn: undefined is not an object (evaluating 'gapi.auth2.getAuthInstance') HOT 1
- something went wrong android code 10 HOT 1
- [FEATURE]: Add required `Privacy Manifest` file for iOS HOT 1
- Capacitor v5 compatibility in 3.4.x HOT 1
- TypeError: Cannot read properties of undefined (reading 'grantOfflineAccess) HOT 1
- GoogleAuth" plugin is not implemented on android HOT 1
- Minimal deployment version HOT 1
- Compatibility with capacitor 6
- Capacitor 6 support
- iOS CAP_PLUGIN Macro for GoogleAuth HOT 2
- iOS CAP_PLUGIN Macro for GoogleAuth HOT 3
- Plugin is not loaded in Android + Capacitor 6 HOT 1
- iOS M1 Mac/Tablets Fails to Initialize HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from capacitorgoogleauth.