I'm using LibGDX & Eclipse set-up. I've managed to successfully sign in using robopods 1.14.0, however this method happens via a Safari Web browser and not the Web View which makes it pointless.
I've made several attempts to resolve this and have referred to various other posts, nothing seems to be working so far.
In my IOS Launcher class, I have :
public class IOSLauncher extends IOSApplication.Delegate {
private GADBannerView bannerView;
private ViewController viewController;
@Override
protected IOSApplication createApplication() {
IOSApplicationConfiguration config = new IOSApplicationConfiguration();
return new IOSApplication(new example(new ViewController()), config);
}
public static void main(String[] argv) {
NSAutoreleasePool pool = new NSAutoreleasePool();
UIApplication.main(argv, null, IOSLauncher.class);
pool.close();
}
@Override
public boolean didFinishLaunching(UIApplication application,
UIApplicationLaunchOptions launchOptions) {
// TODO Auto-generated method stub
boolean b = super.didFinishLaunching(application, launchOptions);
Foundation.log("IOSLauncher didFinishLaunching()");
try {
viewController = new ViewController();
GIDSignIn.getSharedInstance().setAllowsSignInWithWebView(true);
viewController.signIn();
} catch (Exception e) {
Foundation.log("Error configuring the Google context: " + e);
}
return b;
}
@Override
public boolean openURL(UIApplication application, NSURL url, String sourceApplication, NSPropertyList annotation) {
return GIDSignIn.getSharedInstance().handleURL(url, sourceApplication, annotation);
}
}
I've also got the GoogleService-info.plist Configuration file set-up in my resources folder.
I'm using the latest Google Sign in SDK that is 3_0_0 and i'm using google plus iOS SDK 1.7.1
As stated earlier, everything works fine as I'm able to sign in, but happens via Safari Web Browser instead of the WebView which makes it useless as then my app wouldn't get approved by Apple. Am i missing anything?
I'm using LibGDX & Eclipse set-up. I've managed to successfully sign in using robopods 1.14.0, however this method happens via a Safari Web browser and not the Web View which makes it pointless.
I've made several attempts to resolve this and have referred to various other posts, nothing seems to be working so far.
In my IOS Launcher class, I have :
In my ViewController class, I have :
My info file has:
This is what my Robovm.xml looks like :
Finally, to sign in I call:
GPGManager.getSharedInstance().signIn(CLIENT_ID, false);
I've also got the GoogleService-info.plist Configuration file set-up in my resources folder.
I'm using the latest Google Sign in SDK that is 3_0_0 and i'm using google plus iOS SDK 1.7.1
As stated earlier, everything works fine as I'm able to sign in, but happens via Safari Web Browser instead of the WebView which makes it useless as then my app wouldn't get approved by Apple. Am i missing anything?