CodenameOne icon indicating copy to clipboard operation
CodenameOne copied to clipboard

Migrate iOS Google Play Services to CocoaPods

Open ghost opened this issue 10 years ago • 7 comments

Currently the Google Play Services functionality is mapped to builtin libraries. We need to provide a build hint that will use CocoaPods and the latest version of GooglePlay as currently sign in with Google is producing the same issue of a bad web login that we had with Facebook.

ghost avatar Jun 18 '16 04:06 ghost

Since the google plus IOS sdk is deprecated, we'll want to migrate to Google Signin.

https://developers.google.com/identity/sign-in/ios/

https://developers.google.com/identity/sign-in/ios/start-integrating

shannah avatar Jun 23 '16 16:06 shannah

That's #1791

ghost avatar Jun 23 '16 17:06 ghost

I changed Google Plus to use cocoapods. Unfortunately even with the latest version of Google plus, it still uses Safari to try to login if the Google Plus app isn't installed.

Therefore I changed the default behaviour to show an error if you try to login without Google plus install. The message looks like:

image

You can revert this behaviour and allow it to login using Safari by calling:

Display.getInstance().setProperty("ios.gplus.requireGplusAppForLogin", "false");

Before trying to log in.

I also added a build hint to revert to the old version of Google plus (without Cocoapods):

ios.gplus.usePods=false

The better solution to this problem will be https://github.com/codenameone/CodenameOne/issues/1791

shannah avatar Jun 23 '16 18:06 shannah

@shannah would this trigger a compile error for older use cases http://stackoverflow.com/questions/38444722/build-ios-failed-after-changing-back-to-the-old-xcode-build-servers/38449331

ghost avatar Jul 21 '16 04:07 ghost

Any update?

tranhiepvn avatar Jul 23 '16 21:07 tranhiepvn

I found an issue in the build server that could cause the compile error described here. It is fixed in SVN so should be on the build server soon.

shannah avatar Jul 25 '16 23:07 shannah

Thank you

tranhiepvn avatar Jul 28 '16 09:07 tranhiepvn