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.72k stars 3.97k forks source link

πŸ› [firebase_auth] AppleAuthProvider and signInWithProvider crashes on OS 16.13.1 #10550

Closed damiafuentes closed 1 year ago

damiafuentes commented 1 year ago

Bug report

Describe the bug Some iphones can't log in through apple, and they get a crash. I'm seeing this from all prod users on OS 16.13.1. I can't reproduce on OS 16.1.1.

Steps to reproduce

final appleProvider = AppleAuthProvider()
  ..addScope('email')
  ..addScope('name');

UserCredential userCredential =
    await FirebaseAuth.instance.signInWithProvider(appleProvider);

Firebase crashlytics:

Screenshot 2023-03-01 at 10 52 52 PM Screenshot 2023-03-01 at 10 53 16 PM Screenshot 2023-03-01 at 11 04 01 PM Screenshot 2023-03-01 at 11 03 11 PM Screenshot 2023-03-01 at 11 03 18 PM Screenshot 2023-03-01 at 11 03 24 PM Screenshot 2023-03-01 at 11 03 30 PM Screenshot 2023-03-01 at 11 03 37 PM Screenshot 2023-03-01 at 11 03 44 PM Screenshot 2023-03-01 at 11 03 50 PM Screenshot 2023-03-01 at 11 03 05 PM Screenshot 2023-03-01 at 11 03 55 PM

Expected behavior

Not to crash, and log in successfully with Apple instead.


Additional context

Add any other context about the problem here.


Flutter doctor

Run flutter doctor and paste the output below:

Click To Expand ``` Doctor summary (to see all details, run flutter doctor -v): [βœ“] Flutter (Channel stable, 3.7.0, on macOS 13.2 22D49 darwin-arm64, locale en-US) [βœ“] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc4) [βœ“] Xcode - develop for iOS and macOS (Xcode 14.2) [βœ“] Chrome - develop for the web [βœ“] Android Studio (version 2022.1) [βœ“] Connected device (2 available) [βœ“] HTTP Host Availability β€’ No issues found! ```

Flutter dependencies

Run flutter pub deps -- --style=compact and paste the output below:

Click To Expand ``` Dart SDK 2.19.0 Flutter SDK 3.7.0 mobile 0.1.3+9 dependencies: - async 2.10.0 [collection meta] - bloc 8.1.1 [meta] - cached_network_image 3.2.3 [flutter flutter_cache_manager octo_image cached_network_image_platform_interface cached_network_image_web] - connectivity_plus 3.0.3 [flutter flutter_web_plugins connectivity_plus_platform_interface js meta nm] - cupertino_icons 1.0.5 - device_info_plus 8.1.0 [device_info_plus_platform_interface ffi file flutter flutter_web_plugins meta win32] - diffutil_sliverlist 0.5.1 [flutter diffutil_dart] - dio 5.0.1 [http_parser meta path] - dotted_border 2.0.0+3 [flutter path_drawing] - drift 2.5.0 [async convert collection js meta stream_channel sqlite3] - equatable 2.0.5 [collection meta] - firebase_analytics 10.1.4 [firebase_analytics_platform_interface firebase_analytics_web firebase_core firebase_core_platform_interface flutter] - firebase_auth 4.2.9 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta] - firebase_core 2.7.0 [firebase_core_platform_interface firebase_core_web flutter meta] - firebase_crashlytics 3.0.15 [firebase_core firebase_core_platform_interface firebase_crashlytics_platform_interface flutter stack_trace] - firebase_messaging 14.2.5 [firebase_core firebase_core_platform_interface firebase_messaging_platform_interface firebase_messaging_web flutter meta] - flutter 0.0.0 [characters collection js material_color_utilities meta vector_math sky_engine] - flutter_bloc 8.1.2 [flutter bloc provider] - flutter_dotenv 5.0.2 [flutter] - flutter_fgbg 0.2.2 [flutter] - flutter_native_splash 2.2.18 [args flutter flutter_web_plugins js html image meta path universal_io xml yaml] - flutter_svg 1.1.6 [flutter meta path_drawing vector_math xml] - fluttertoast 8.2.1 [flutter flutter_web_plugins] - google_sign_in 6.0.1 [flutter google_sign_in_android google_sign_in_ios google_sign_in_platform_interface google_sign_in_web] - hive 2.2.3 [meta crypto] - hive_flutter 1.1.0 [flutter hive path_provider path] - image 4.0.15 [archive meta xml] - image_picker 0.8.6+4 [flutter image_picker_android image_picker_for_web image_picker_ios image_picker_platform_interface] - in_app_review 2.0.6 [flutter in_app_review_platform_interface] - intl 0.17.0 [clock path] - json_annotation 4.8.0 [meta] - location 4.4.0 [flutter location_platform_interface location_web] - logger 1.2.2 - lottie 2.2.0 [archive flutter path vector_math] - meta 1.8.0 - mixpanel_flutter 2.0.0 [flutter flutter_web_plugins js] - package_info_plus 3.0.3 [ffi flutter flutter_web_plugins http meta path package_info_plus_platform_interface win32] - path 1.8.2 - path_provider 2.0.13 [flutter path_provider_android path_provider_foundation path_provider_linux path_provider_platform_interface path_provider_windows] - platform_device_id 1.0.1 [flutter platform_device_id_platform_interface platform_device_id_macos platform_device_id_linux platform_device_id_web platform_device_id_windows device_info] - pretty_dio_logger 1.3.1 [dio] - retrofit 4.0.1 [dio meta] - rxdart 0.27.7 - screenshot 1.3.0 [flutter] - share_plus 6.3.1 [cross_file meta mime flutter flutter_web_plugins share_plus_platform_interface file url_launcher_web url_launcher_windows url_launcher_linux url_launcher_platform_interface ffi win32] - social_share 2.3.1 [flutter path_provider] - sprintf 7.0.0 - sqlite3_flutter_libs 0.5.13 [flutter] - url_launcher 6.1.10 [flutter url_launcher_android url_launcher_ios url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_launcher_windows] - uuid 3.0.7 [crypto] dev dependencies: - build_runner 2.3.3 [args async analyzer build build_config build_daemon build_resolvers build_runner_core code_builder collection crypto dart_style frontend_server_client glob graphs http_multi_server io js logging meta mime package_config path pool pub_semver pubspec_parse shelf shelf_web_socket stack_trace stream_transform timing watcher web_socket_channel yaml] - drift_dev 2.5.2 [charcode collection recase meta path json_annotation stream_transform args logging cli_util yaml io drift sqlite3 sqlparser analyzer analyzer_plugin source_span package_config pub_semver build build_resolvers build_config dart_style source_gen string_scanner] - flutter_lints 2.0.1 [lints] - flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters collection js matcher material_color_utilities meta source_span stream_channel string_scanner term_glyph] - hive_generator 2.0.0 [build source_gen hive analyzer source_helper] - json_serializable 6.6.1 [analyzer async build build_config collection json_annotation meta path pub_semver pubspec_parse source_gen source_helper] - retrofit_generator 5.0.0 [analyzer build built_collection code_builder dart_style dio retrofit source_gen tuple] transitive dependencies: - _fe_analyzer_shared 54.0.0 [meta] - _flutterfire_internals 1.0.16 [collection firebase_core firebase_core_platform_interface flutter meta] - analyzer 5.6.0 [_fe_analyzer_shared collection convert crypto glob meta package_config path pub_semver source_span watcher yaml] - analyzer_plugin 0.11.2 [analyzer collection dart_style pub_semver yaml] - archive 3.3.6 [crypto path pointycastle] - args 2.4.0 - boolean_selector 2.1.1 [source_span string_scanner] - build 2.3.1 [analyzer async convert crypto glob logging meta path] - build_config 1.1.1 [checked_yaml json_annotation path pubspec_parse yaml] - build_daemon 3.1.1 [built_collection built_value http_multi_server logging path pool shelf shelf_web_socket stream_transform watcher web_socket_channel] - build_resolvers 2.2.0 [analyzer async build collection crypto graphs logging path package_config pool pub_semver stream_transform yaml] - build_runner_core 7.2.7 [async build build_config build_resolvers collection convert crypto glob graphs json_annotation logging meta path package_config pool timing watcher yaml] - built_collection 5.1.1 - built_value 8.4.3 [built_collection collection fixnum meta] - cached_network_image_platform_interface 2.0.0 [flutter flutter_cache_manager] - cached_network_image_web 1.0.2 [flutter flutter_cache_manager cached_network_image_platform_interface] - characters 1.2.1 - charcode 1.3.1 - checked_yaml 2.0.2 [json_annotation source_span yaml] - cli_util 0.3.5 [meta path] - clock 1.1.1 - code_builder 4.4.0 [built_collection built_value collection matcher meta] - collection 1.17.0 - connectivity_plus_platform_interface 1.2.4 [flutter meta plugin_platform_interface] - convert 3.1.1 [typed_data] - cross_file 0.3.3+4 [js meta] - crypto 3.0.2 [typed_data] - csslib 0.17.2 [source_span] - dart_style 2.2.4 [analyzer args path pub_semver source_span] - dbus 0.7.8 [args ffi meta xml] - device_info 2.0.3 [flutter device_info_platform_interface] - device_info_platform_interface 2.0.1 [flutter meta plugin_platform_interface] - device_info_plus_platform_interface 7.0.0 [flutter meta plugin_platform_interface] - diffutil_dart 3.0.0 - fake_async 1.3.1 [clock collection] - ffi 2.0.1 - file 6.1.4 [meta path] - firebase_analytics_platform_interface 3.3.21 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface] - firebase_analytics_web 0.5.1+12 [_flutterfire_internals firebase_analytics_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js] - firebase_auth_platform_interface 6.11.11 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface] - firebase_auth_web 5.2.8 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser intl js meta] - firebase_core_platform_interface 4.5.3 [collection flutter flutter_test meta plugin_platform_interface] - firebase_core_web 2.2.1 [firebase_core_platform_interface flutter flutter_web_plugins js meta] - firebase_crashlytics_platform_interface 3.3.15 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface] - firebase_messaging_platform_interface 4.2.14 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface] - firebase_messaging_web 3.2.15 [_flutterfire_internals firebase_core firebase_core_web firebase_messaging_platform_interface flutter flutter_web_plugins js meta] - fixnum 1.1.0 - flutter_blurhash 0.7.0 [flutter] - flutter_cache_manager 3.3.0 [clock collection file flutter http path path_provider pedantic rxdart sqflite uuid] - flutter_plugin_android_lifecycle 2.0.8 [flutter] - flutter_web_plugins 0.0.0 [flutter js characters collection material_color_utilities meta vector_math] - frontend_server_client 3.2.0 [async path] - glob 2.1.1 [async collection file path string_scanner] - google_identity_services_web 0.2.0 [js meta] - google_sign_in_android 6.1.7 [flutter google_sign_in_platform_interface] - google_sign_in_ios 5.5.2 [flutter google_sign_in_platform_interface] - google_sign_in_platform_interface 2.3.1 [flutter plugin_platform_interface quiver] - google_sign_in_web 0.11.0+1 [flutter flutter_web_plugins google_identity_services_web google_sign_in_platform_interface http js] - graphs 2.2.0 [collection] - html 0.15.1 [csslib source_span] - http 0.13.5 [async http_parser meta path] - http_multi_server 3.2.1 [async] - http_parser 4.0.2 [collection source_span string_scanner typed_data] - image_picker_android 0.8.5+8 [flutter flutter_plugin_android_lifecycle image_picker_platform_interface] - image_picker_for_web 2.1.11 [flutter flutter_web_plugins image_picker_platform_interface] - image_picker_ios 0.8.7 [flutter image_picker_platform_interface] - image_picker_platform_interface 2.6.3 [cross_file flutter http plugin_platform_interface] - in_app_review_platform_interface 2.0.4 [flutter url_launcher plugin_platform_interface platform] - io 1.0.4 [meta path string_scanner] - js 0.6.5 [meta] - lints 2.0.1 - location_platform_interface 2.3.0 [flutter meta plugin_platform_interface] - location_web 3.1.1 [flutter flutter_web_plugins http_parser js location_platform_interface meta] - logging 1.1.1 - matcher 0.12.13 [meta stack_trace] - material_color_utilities 0.2.0 - mime 1.0.4 - nested 1.0.0 [flutter] - nm 0.5.0 [dbus] - octo_image 1.0.2 [flutter flutter_blurhash] - package_config 2.1.0 [path] - package_info_plus_platform_interface 2.0.1 [flutter meta plugin_platform_interface] - path_drawing 1.0.1 [vector_math meta path_parsing flutter] - path_parsing 1.0.1 [vector_math meta] - path_provider_android 2.0.23 [flutter path_provider_platform_interface] - path_provider_foundation 2.1.2 [flutter path_provider_platform_interface] - path_provider_linux 2.1.9 [ffi flutter path path_provider_platform_interface xdg_directories] - path_provider_platform_interface 2.0.6 [flutter platform plugin_platform_interface] - path_provider_windows 2.1.4 [ffi flutter path path_provider_platform_interface win32] - pedantic 1.11.1 - petitparser 5.1.0 [meta] - platform 3.1.0 - platform_device_id_linux 1.0.0 [flutter] - platform_device_id_macos 1.0.0 [flutter] - platform_device_id_platform_interface 1.0.0 [flutter plugin_platform_interface] - platform_device_id_web 1.0.0 [flutter flutter_web_plugins platform_device_id_platform_interface] - platform_device_id_windows 1.0.0 [flutter] - plugin_platform_interface 2.1.4 [meta] - pointycastle 3.6.2 [collection convert js] - pool 1.5.1 [async stack_trace] - process 4.2.4 [file path platform] - provider 6.0.5 [collection flutter nested] - pub_semver 2.1.3 [collection meta] - pubspec_parse 1.2.2 [checked_yaml collection json_annotation pub_semver yaml] - quiver 3.2.1 [matcher] - recase 4.1.0 - share_plus_platform_interface 3.2.0 [cross_file flutter meta mime plugin_platform_interface path_provider uuid] - shelf 1.4.0 [async collection http_parser path stack_trace stream_channel] - shelf_web_socket 1.0.3 [shelf stream_channel web_socket_channel] - sky_engine 0.0.99 - source_gen 1.2.7 [analyzer async build dart_style glob path source_span yaml] - source_helper 1.3.3 [analyzer collection source_gen] - source_span 1.9.1 [collection path term_glyph] - sqflite 2.2.5 [flutter sqflite_common path] - sqflite_common 2.4.2+2 [synchronized path meta] - sqlite3 1.9.1 [collection ffi js meta path] - sqlparser 0.27.0 [meta collection source_span charcode] - stack_trace 1.11.0 [path] - stream_channel 2.1.1 [async] - stream_transform 2.1.0 - string_scanner 1.2.0 [source_span] - synchronized 3.0.1 - term_glyph 1.2.1 - test_api 0.4.16 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher] - timing 1.0.1 [json_annotation] - tuple 2.0.1 - typed_data 1.3.1 [collection] - universal_io 2.2.0 [collection meta typed_data] - url_launcher_android 6.0.24 [flutter url_launcher_platform_interface] - url_launcher_ios 6.1.1 [flutter url_launcher_platform_interface] - url_launcher_linux 3.0.3 [flutter url_launcher_platform_interface] - url_launcher_macos 3.0.3 [flutter url_launcher_platform_interface] - url_launcher_platform_interface 2.1.2 [flutter plugin_platform_interface] - url_launcher_web 2.0.15 [flutter flutter_web_plugins url_launcher_platform_interface] - url_launcher_windows 3.0.4 [flutter url_launcher_platform_interface] - vector_math 2.1.4 - watcher 1.0.2 [async path] - web_socket_channel 2.3.0 [async crypto stream_channel] - win32 3.1.3 [ffi] - xdg_directories 1.0.0 [meta path process] - xml 6.2.2 [collection meta petitparser] - yaml 3.1.1 [collection source_span string_scanner] ```

darshankawar commented 1 year ago

@damiafuentes Can you provide the error log in properly formatted text ? Although I don't have iOS 16 device, but ran plugin example on iOS 15.3.1 device which worked properly.

damiafuentes commented 1 year ago

@darshankawar

Here's the whole stack trace. It works fine for me on 16.1.1. I am only seeing crashes on 16.3.1 and 16.2.0.

ios_16.3.1_stacktrace.txt

ios_16.2.0_stacktrace.txt

Screenshot 2023-03-02 at 10 55 19 AM
darshankawar commented 1 year ago

Thanks for the update. Since I don't have iOS 16 to verify on and was able to login using iOS 15 properly using plugin example as mentioned earlier, I'll keep this issue open for team's thoughts.

/cc @Lyokone

russellwheatley commented 1 year ago

I've just tested the auth example app. Also added the additional name scope. Running on my device which has iOS 16.3.1 installed.

No problem signing in with Apple. We're going to need a reproduction. Thanks.

google-oss-bot commented 1 year ago

Hey @damiafuentes. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot commented 1 year ago

Since there haven't been any recent updates here, I am going to close this issue.

@damiafuentes if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.