firebase / flutterfire

🔥 A collection of Firebase plugins for Flutter apps.
https://firebase.google.com/docs/flutter/setup
BSD 3-Clause "New" or "Revised" License
8.65k stars 3.96k forks source link

[firebase_auth]: Using Google Sign in on iOS 18 Simulator returns blank screen #13420

Open hls-app opened 2 days ago

hls-app commented 2 days ago

Is there an existing issue for this?

Which plugins are affected?

Auth

Which platforms are affected?

iOS

Description

The Sign in with Google works perfectly on iOS 17 but looks like there is an issue with iOS 18 simulator. Actual device running iOS 18 is fine though.

Reproducing the issue

To reproduce, simply tap on the Sign in with Google button on an iOS 18 simulator and you can see the native sheet goes beyond the normal setting and shows a blank screen. Interestingly, there were no errors or exceptions thrown in the Flutter Console. However, I did find there was an error message "Unknown client: appname" when running using Xcode.

Firebase Core version

3.6.0

Flutter Version

3.24.3

Relevant Log Output

Unknown client: appname

Flutter dependencies

  firebase_auth: ^5.3.1
  firebase_auth_platform_interface: ^7.4.7
  firebase_core: ^3.6.0
  firebase_core_platform_interface: ^5.3.0
  google_sign_in: ^6.2.1

Additional context and comments

Simulator Screenshot - iPhone 16 - 2024-09-27 at 12 03 42

As you can see after the alert box, instead of opening the native sheet normally, it goes all the way up and shows blank.

russellwheatley commented 2 days ago

I've just tested the the firebase auth example app on the simulator and it worked fine:

https://github.com/user-attachments/assets/9e3cced8-59b8-411c-9545-b58674868411

Please try the firebase auth example app and see if it works 🙏

hls-app commented 1 day ago

Thanks @russellwheatley

I did try the example project and it is working fine. Now I got more questions:

  1. My app had no change related to auth in months and it is working perfectly fine for iOS 17 Simulator but the same code is not working on iOS 18.

  2. There are no console message except when running using Xcode. But the app goes blank and unresponsive, which seems not normal at all. Usually, if there is an error, the google auth will return some exceptions.

  3. The same code is working fine on iOS 18 actual device.

I will do some more investigation and update this thread.