CodetrixStudio / CapacitorGoogleAuth

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

2 Problems GoogleAuth #139

Open DaniFaro opened 3 years ago

DaniFaro commented 3 years ago

I follow this guide https://devdactic.com/capacitor-google-sign-in/ and I have two problems.

The first is on iOS device

When I try to call GoogleAuth:

const googleUser = await GoogleAuth.signIn() as any;

I have this error:

error-ios

The second is on Android device

I have this error: GoogleAuth.init() is not implemented on android.

dpgiakatos commented 3 years ago

Working on Android device. I had the same error. The GoogleAuth.inti() is not implemented on android so I use only the GoogleAuth.signIn(). Then I had the issue #110, which I solved by following the solution https://github.com/CodetrixStudio/CapacitorGoogleAuth/issues/110#issuecomment-864494481 was proposed by @jonit-dev.

DaniFaro commented 3 years ago

Thanks @dpgiakatos for the reply: now working well on Android!

I still have the problem on iOS.