I\'m following https://firebase.google.com/docs/auth/ and want to use FirebaseUI (https://github.com/firebase/FirebaseUI-iOS/tree/master/FirebaseUI) for authentication.
Essentially you need to add the below to the root of the plist.
CFBundleURLTypes
CFBundleURLSchemes
com.googleusercontent.apps.your-app-id
You can get your app id from the RESERVED_CLIENT_ID
entry in your GoogleService-Info.plist file.
Next, you will need to implement the openURL app delegate method like this:
func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool {
return GIDSignIn.sharedInstance().handle(url, sourceApplication: options[UIApplicationOpenURLOptionsKey.sourceApplication] as? String, annotation: options[UIApplicationOpenURLOptionsKey.annotation])
}
Check out my answer here for some more details.