On Android we want to use “Sign In with Google”.
Is there any C/C++ sample code working with JUCE ?
On Android we want to use “Sign In with Google”.
Is there any C/C++ sample code working with JUCE ?
Use java/kotlin to run the sign in then pass the result to the c++ using jni
Thanks for your suggestions.
On Windows, MacOS or iOS it will not be easy to run java / kotlin with Android libraries ![]()
Your question is asking about android, if you want it cross platform you will have to launch a browser instance there is no c++ sdk for this.
Short answer: there’s no fully cross-platform way to implement Google Sign-In. Google provides different identity APIs per platform (Android, iOS, Web, and Desktop OAuth), each with its own UX conventions and security requirements. On desktop you’re limited to browser-based OAuth, and on mobile you must use the native SDKs. JUCE doesn’t abstract any of this.
So this really is something you have to implement per-platform, using the mechanisms each platform expects. Trying to force a single cross-platform hammer on all of them just isn’t viable.
@joeloftus is absolutely correct. Either way, you will be calling the native APIs on mobile.
For Android:
For iOS:
Thanks @jrlanglois
Thanks @joeloftus
Now , it’s clear what to do !