Sign in not working on iOS 18.4 simulator
Describe the bug When running identical code, the google sign in view does not load on the iOS 18.4 simulator but works fine on 18.2
To Reproduce
Steps to reproduce the behavior:
Try using the google sign in googleSignIn.signIn function on an iOS 18.4 simulator. The modal web view that pops up will say Safari can't open the webpage because the network connection was lost
Expected behavior The same code on other iOS versions loads the google sign in web view as expected.
Screenshots
Here's what it looks like on the iOS 18.4 simulator
Environment
- Device: Simulator (Xcode) - iPad (10th generation)
- OS: iOS 18.4
Additional context I just upgraded to Xcode 16.3 which came with the iOS 18.4 simulator. I confirmed the Xcode version is not the problem because the sign in view works when run via Xcode 16.3 as long as the simulator is 18.2 instead of 18.4. I have not tried 18.3.1. It is also worth noting I ran on a physical device running 18.4.1 built with Xcode 16.3 and the sign in view works.
There's a good chance this is related to https://developer.apple.com/forums/thread/777999. See https://github.com/firebase/firebase-ios-sdk/pull/14696 for an example workaround.
Checking in! Thanks for the pointer @paulb777. Did the workaround help for your use case @DavidCelentano?
Am I missing something? It looks like there's no way to force URLRequest's assumesHTTP3Capable = false when calling googleSignIn.signIn.
Or is there some way to configure the GIDSignIn or intercept its URLRequest creation and configure it?
Hi @qizh! Building with iOS 18.6 simulators is the current "workaround". Based on the Apple dev thread linked above, the issue persists on 18.4 simulators.
Closing this issue - unfortunately, this is expected behavior for iOS 18.4 simulators.