-
Notifications
You must be signed in to change notification settings - Fork 483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FUIAuthDelegate methods not called in v.14 #1198
Comments
Thanks for the thorough repros! #1200 should fix. |
Hi @joaomvfsantos I appreciate your persistence. While #1200 fixed signing in, I'm able to reproduce the delegate method not being called. For some reason I'll reopen and continue to investigate. |
I disabled swizzling and it still fails to find the selector:
Very weird since it's the exact same selector that works in FirebaseUI 13 ..... |
I found the issue, a fix, and published v14.2.4 |
@paulb777 I confirm it works. Thanks! On a side note, because of the new |
@joaomvfsantos Good to hear! Good catch on the sample, too. Thanks. #1205 |
@paulb777 hey, |
There may be a difference between Xcode versions. Does the last "Fix" suggestion help? |
I am experiencing the same issue in the Swift environment of Xcode 15.2. |
also happens in Xcode 16. @paulb777 any suggestions? |
Please open another issue with a reproducible example and we can investigate. |
I use the FirebaseAuthUI in SwiftUI. I wrapped it in a UIViewControllerRepresentable and implemented the struct AuthView: View {
var body: some View {
AuthViewControllerRepresentable()
}
}
struct AuthViewControllerRepresentable: UIViewControllerRepresentable
...
func makeUIViewController(context: Context) -> UINavigationController {
let authUI = FUIAuth.defaultAuthUI()!
authUI.delegate = context.coordinator The FUIAuthDelegate is not called if it is activated inside a
However, the FUIAuthDelegate method will get called if it is a stand alone page |
Problem: FUIAuthDelegate methods are not being called anymore in v.14. I have setup two example projects with the same code, one with FirebaseUI v.13 and another with FirebaseUI v.14. On version 13 it works correctly, and on version 14 not anymore.
Specifically the function that is not being called can be found in the AppDelegate file:
Xcode 15.4
macOS 14.6.1 (Sonoma)
Using Swift Package Manager
Example with Firebase 14 where the issue exists: https://github.com/joaomvfsantos/FirebaseUITest/tree/fuiauthdelegate-issue (please use branch fuiauthdelegate-issue)
Example with Firebase 13 where it works: https://github.com/joaomvfsantos/FirebaseUITest/tree/fuiauthdelegate-issue-v13 (please use branch fuiauthdelegate-issue-v13)
Note: Please setup the GoogleService-Info.plist in the projects and the URL types and GIDClientID in the Info.plist before running the projects
The text was updated successfully, but these errors were encountered: