CapacitorGoogleAuth icon indicating copy to clipboard operation
CapacitorGoogleAuth copied to clipboard

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

Open veeravetrivel opened this issue 3 years ago • 9 comments

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

veeravetrivel avatar Mar 03 '22 09:03 veeravetrivel

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

RandyJohan avatar Mar 04 '22 16:03 RandyJohan

Same Here any solution?

rajesh8005 avatar Mar 05 '22 06:03 rajesh8005

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

Ciriak avatar Mar 06 '22 23:03 Ciriak

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

veeravetrivel avatar Mar 07 '22 05:03 veeravetrivel

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.

D3lph1 avatar Mar 10 '22 19:03 D3lph1

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

RAPHAELSTZ avatar Mar 16 '22 13:03 RAPHAELSTZ

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

Qberon avatar Apr 11 '22 19:04 Qberon

@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.

gilzonme avatar Aug 08 '22 03:08 gilzonme

Same problem here. Any further help ?