Skip to content

Commit 18f04f6

Browse files
committed
Fix Facebook Login in Swift sample app.
1 parent 8c5e602 commit 18f04f6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

samples/swift/FirebaseUI-demo-swift/FUIAppDelegate.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
//
1616

1717
import UIKit
18+
import FBSDKCoreKit
1819
import Firebase
1920
import FirebaseAuthUI
2021
import GTMSessionFetcher
@@ -29,11 +30,21 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
2930
// accompanying valid GoogleService-Info.plist file.
3031
FirebaseApp.configure()
3132
GTMSessionFetcher.setLoggingEnabled(true)
33+
ApplicationDelegate.shared.application(
34+
application,
35+
didFinishLaunchingWithOptions: launchOptions
36+
)
3237
return true
3338
}
3439

3540
@available(iOS 9.0, *)
3641
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any]) -> Bool {
42+
ApplicationDelegate.shared.application(
43+
app,
44+
open: url,
45+
sourceApplication: options[UIApplication.OpenURLOptionsKey.sourceApplication] as? String,
46+
annotation: options[UIApplication.OpenURLOptionsKey.annotation]
47+
)
3748
let sourceApplication = options[UIApplication.OpenURLOptionsKey.sourceApplication] as! String?
3849
return self.handleOpenUrl(url, sourceApplication: sourceApplication)
3950
}

0 commit comments

Comments
 (0)