Open JilReg opened 5 years ago
@JilReg did you manage to run it on Cordova?
In Google Cloud Console for used Client ID it's required to whitelist Origins from where requests will come. But Cordova can set only localhost:8080 Origin which is not acceptable for Google as far as I know when they verify you app
Actually I can use Google API CORS to resolve my question above
Hey @TMSCH,
I have read all your posts in #401, in #304 and in #360. Sadly I'm still did not figure out how to solve my problem (accessing Google APIs trough Gapi on a Cordova device after restarting the app.)
I would appreciate every helping advice! 🤗
What I would like to achieve
1.) I would like to let users sign in with Google account into an Ionic / Cordova app running on iOS and on Android via Firebase. 2.) I would like afterwards to access the users emails in Gmail via Gapi. And being able to do so after closing and opening the app.
What I have achieved
To
constructor([...])
:To
nativeGoogleLogin()
:What I figured out / think
gplusUser.accessToken
and provide it togapi.client.setToken
after closing and opening the app, I'm able to access the Google APIs, but from what I understand the token will expire after some time and then I would have the same problem as before.