Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Update to latest GoogleSignIn library #743

Open
pghoratiu opened this issue Oct 28, 2021 · 10 comments
Open

Update to latest GoogleSignIn library #743

pghoratiu opened this issue Oct 28, 2021 · 10 comments

Comments

@pghoratiu
Copy link
Contributor

The GoogleSignin library is out of date, there is a new one available:
https://github.com/google/GoogleSignIn-iOS/releases
https://developers.google.com/identity/sign-in/ios/quick-migration-guide

Is there a fork or another cordova plugin that integrates this version?

@adelabd
Copy link

adelabd commented Nov 5, 2021

+1

I'm looking for a solution with the last version because I need to use it within emulator and it doesn't work with M1 mac

@adelabd
Copy link

adelabd commented Nov 20, 2021

@pghoratiu in order to use the latest GoogleSignIn Library (and to emulate with mac m1), I had to use another library with capacitor (https://github.com/CodetrixStudio/CapacitorGoogleAuth)

Like you can see here : https://github.com/CodetrixStudio/CapacitorGoogleAuth/blob/master/ios/Podfile#L9
The library use GoogleSignIn 6, within you can run the emualtor with mac m1.

However, you need to use capacitor instead of cordova.
This link helped me a lot : https://devdactic.com/capacitor-google-sign-in/

By the way, currently the latest version is not availabile on npm. So if you want the latest version, you have to put the following into your package.json :
"@codetrix-studio/capacitor-google-auth": "git://github.com:CodetrixStudio/CapacitorGoogleAuth.git".

By then that will be available on npm (I guess), but today it's not the case.

Good luck !

@anthonnyc2
Copy link

Is there a solution for this? I mean for projects that work with Cordova.

@pghoratiu
Copy link
Contributor Author

@adelabd Thanks for your suggestion however that won't work for us as we are working with cordova currently and we do not plan to change.
Will probably spend some time and investigate creating a fork of this plugin that is cordova compatible.

@antgel
Copy link

antgel commented Mar 10, 2022

@pghoratiu and everyone else - did you get anywhere with this? We are also stuck on Cordova. @EddyVerbruggen

@pghoratiu
Copy link
Contributor Author

pghoratiu commented Mar 10, 2022

We have built internally a version, still fixing some bugs on it.
Will publish it later on (sometime next week, ping me if I forget about it).

The code will be provided as is without technical support of any sorts and no ionic-native integration (using the cordova calls directly).

@pghoratiu
Copy link
Contributor Author

pghoratiu commented Mar 15, 2022

@AntGe @anthonnyc2 I have pushed the plugin which we use internally, it is provided as is, no strings attached and no support.

Plugin Source Code: https://github.com/russmedia-digital/cordova-plugin-google-signin
Demo App: https://github.com/russmedia-digital/cordova-plugin-google-signin-test

What is supported:

  • iOS - latest GoogleSignin library support (6.1), M1 chip as well
  • Android - besides google signin there is the option to do a one tap login

For integration use the cordova calls directly, no ionic-native wrapper supported at this moment and there are no plans to support it.
Will update the info on both projects as my time permits.

@justinschier
Copy link

Bless you @pghoratiu !!! <3

@pghoratiu
Copy link
Contributor Author

pghoratiu commented Sep 8, 2022

Thanks but I can not assume credit, it's a commissioned work completed by @liyamahendra

@liyamahendra
Copy link

Thank you @pghoratiu ! :-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants
@justinschier @antgel @pghoratiu @anthonnyc2 @liyamahendra @adelabd and others