Google Sign-in conflicts with Facebook login
<p>I'm using <a href="https://developers.google.com/identity/sign-in/ios/start?ver=swift" rel="noreferrer">Google Sign-in</a> and <a href="https://developers.facebook.com/docs/facebook-login/ios" rel="noreferrer">Facebook Login</a> to provide Google and Facebook login in my app.</p>

<p>The problem is, when I'm using them both - <strong>Facebook Login Screen (based on Safari View Controller) doesn't dismiss after user logged in.</strong></p>

<p>After hours of painful debugging I found out that the problem only appears if I initialise Google Sign-in before showing Facebook login prompt.</p>

<p>Basically, it's one line. </p>

<pre><code>GGLContext.sharedInstance().configureWithError(&amp;configureError)
</code></pre>

<p>If I comment that line - Facebook login works fine.</p>

<p>EDIT: This is what I have in my AppDelegate.swift:</p>

<pre><code> func application(application: UIApplication, openURL url: NSURL, options: [String: AnyObject]) -&gt; Bool {
        return FBSDKApplicationDelegate.sharedInstance().application(application,
                                                                openURL: url,
                                                                sourceApplication: options[UIApplicationOpenURLOptionsSourceApplicationKey] as! String,
                                                                annotation: options [UIApplicationOpenURLOptionsAnnotationKey])
</code></pre>

<p>And the sad thing is that this method isn't invoked at all. 
But if I disable Google Login - it works fine.</p>

<p>Additional details:
I'm using Facebook SDK v4.12.0 and Google Sign-In SDK v4.0.0</p>

<p>Xcode Version 7.3.1 (7D1014), tested on iOS 9.3</p>

<p>Any ideas are welcome. </p>