GoogleSignIn-iOS icon indicating copy to clipboard operation
GoogleSignIn-iOS copied to clipboard

Sign in not working on iOS 18.4 simulator

Open DavidCelentano opened this issue 8 months ago • 3 comments

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 Image

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.

DavidCelentano avatar Apr 18 '25 15:04 DavidCelentano

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.

paulb777 avatar Apr 19 '25 16:04 paulb777

Checking in! Thanks for the pointer @paulb777. Did the workaround help for your use case @DavidCelentano?

brnnmrls avatar May 07 '25 17:05 brnnmrls

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?

qizh avatar May 08 '25 06:05 qizh

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.

w-goog avatar Aug 18 '25 22:08 w-goog

Closing this issue - unfortunately, this is expected behavior for iOS 18.4 simulators.

w-goog avatar Aug 20 '25 21:08 w-goog