CodetrixStudio / CapacitorGoogleAuth

Capacitor plugin for Google Auth. Lightweight & no dependencies.
MIT License
284 stars 160 forks source link

Ionic - 5, Capacitor - 3, Angular 12 not working "Something went wrong" occurs always #188

Open veeravetrivel opened 2 years ago

veeravetrivel commented 2 years ago

Hello Team

I am facing "Something went wrong" message always after selection Google account from dialog. Created web and android(SHA1) client ids using Google Developer Console

  1. Added registerPlugin onCreate in MainActivity.java
  2. Added server-client-id in strings.xml with Web client id
  3. Added meta tag with Web client Id in index.html
  4. Added plugin GoogleAuth in capacitor.config.json with Web client id in serverClientId.

On button click signIn is called, The dialog with Google mail selection list or to add Google account is shown, but after selecting the Google account the dialog closes and shows Error "Something went wrong" Please check and let me know how to achieve this in Android Mobile. @Monomachus @joeflateau @Yuripetusko @lambirou @th3brink

RandyJohan commented 2 years ago

Hello, I'm having a similar problem with Vue, if anyone else has had this happen, please let me know.

rajesh8005 commented 2 years ago

Same Here any solution?

Ciriak commented 2 years ago

Same issue here with react , all seems correct, yet i have a "Something went wrong"

veeravetrivel commented 2 years ago

Hello All

It worked for me. Kindly follow this youtube https://www.youtube.com/watch?v=GwtpoWZ_78E link procced, its working fine. Mainly sha1 key for local testing use androiddebug key, which is available in c:/android folder.

Thanks

D3lph1 commented 2 years ago

Same issue with Android. iOS works fine.

I encountered with #157, tried to use Web client id instead of Android client id and it is working now. It can be used as a temporary workaround.

This comment explains the approach you should use.

RAPHAELSTZ commented 2 years ago

Hi, I have the exact same problem but on capacitor-google-auth version 2.1.3

Qberon commented 2 years ago

For those who carefully followed the instructions but encountered the "Something went wrong" error. With a high degree of probability this is not a bug in your code but slowness of console.cloud.google.com. When you create or edit Credentials, Goggle wrote note like this It may take 5 minutes to a few hours for settings to take effect And this is not a joke. It's really may take several hours. Don't be rush. If you change Package name or SHA-1 certificate fingerprint don't try debug your code immediately. Take your time and do other job or just a rest

gilzonme commented 2 years ago

@Qberon Everything is done perfectly, followed each and every step. Waited for a long time after adding to console more that 48 hours, but still same "Something went wrong". Errors must be some more descriptive.

Epameinondas-Theodoropoulos commented 2 years ago

Same problem here. Any further help ?