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.5k stars 3.92k forks source link

[Core]: PlatformException(channel-error, Unable to establish connection on channel., null, null) #12941

Closed tarunkhatri closed 2 days ago

tarunkhatri commented 2 weeks ago

Is there an existing issue for this?

Which plugins are affected?

Core

Which platforms are affected?

iOS

Description

We have upgraded flutter and dependencies, after upgrading android one is working fine but ios app gets stuck at Firebase Initialization code.

I have tried to run Firebase Auth and Analytics Example app they are working fine but our app is not working.

I did tried to remove ios folder and recreated it and still not working.

I did reconfigured the project using flutterfire cli but still no luck.

Reproducing the issue

void main() async { WidgetsFlutterBinding.ensureInitialized(); await Firebase.initializeApp(options:DefaultFirebaseOptions.currentPlatform); await runZonedGuarded( () async{ await initialChecks(); runApp(App()); }, (error, stack) { print(error.toString()); print(stack.toString()); FirebaseCrashlytics.instance..recordError(error, stack); }, ); }

Firebase Core version

3.0.0

Flutter Version

3.22.0

Relevant Log Output

flutter: PlatformException(channel-error, Unable to establish connection on channel., null, null)
flutter: #0 FirebaseCoreHostApi.initializeCore (package:firebase_core_platform_interface/src/pigeon/messages.pigeon.dart:210:7)

#1 MethodChannelFirebase._initializeCore (package:firebase_core_platform_interface/src/method_channel/method_channel_firebase.dart:29:44)

#2 MethodChannelFirebase.initializeApp (package:firebase_core_platform_interface/src/method_channel/method_channel_firebase.dart:73:7)

#3 Firebase.initializeApp (package:firebase_core/src/firebase.dart:43:31)

#4 initialChecks (package:creatics_mobile/main.dart:108:3)

#5 main. (package:creatics_mobile/main.dart:75:11)

#6 main (package:creatics_mobile/main.dart:73:3)

Flutter dependencies

Expand Flutter dependencies snippet
```yaml Dart SDK 3.4.0 Flutter SDK 3.22.0 creatics_mobile 1.0.25+1 dependencies: - advance_pdf_viewer_fork 2.0.0 [flutter flutter_cache_manager numberpicker path_provider] - android_path_provider 0.3.0 [flutter] - app_settings 5.1.1 [flutter plugin_platform_interface] - better_player 0.0.83 [flutter cupertino_icons wakelock_plus meta flutter_widget_from_html_core visibility_detector path_provider collection xml] - cached_network_image 3.3.1 [cached_network_image_platform_interface cached_network_image_web flutter flutter_cache_manager octo_image] - carousel_slider 4.2.1 [flutter] - collection 1.18.0 - cupertino_icons 1.0.8 - dartz 0.10.1 - device_info_plus 10.1.0 [device_info_plus_platform_interface ffi file flutter flutter_web_plugins meta web win32 win32_registry] - dotted_line 3.2.2 [flutter] - equatable 2.0.5 [collection meta] - extended_nested_scroll_view 6.1.0 [flutter visibility_detector] - file_picker 5.5.0 [flutter flutter_web_plugins flutter_plugin_android_lifecycle plugin_platform_interface ffi path win32] - firebase_analytics 11.0.0 [firebase_analytics_platform_interface firebase_analytics_web firebase_core firebase_core_platform_interface flutter] - firebase_core 3.0.0 [firebase_core_platform_interface firebase_core_web flutter meta] - firebase_crashlytics 4.0.0 [firebase_core firebase_core_platform_interface firebase_crashlytics_platform_interface flutter stack_trace] - firebase_messaging 15.0.0 [firebase_core firebase_core_platform_interface firebase_messaging_platform_interface firebase_messaging_web flutter meta] - flutter 0.0.0 [characters collection material_color_utilities meta vector_math sky_engine] - flutter_bloc 8.1.5 [bloc flutter provider] - flutter_datetime_picker_plus 2.2.0 [flutter] - flutter_downloader 1.11.7 [flutter] - flutter_facebook_auth 6.2.0 [flutter flutter_facebook_auth_platform_interface flutter_facebook_auth_web facebook_auth_desktop] - flutter_html 3.0.0-beta.2 [html csslib collection list_counter flutter] - flutter_local_notifications 17.1.2 [clock flutter flutter_local_notifications_linux flutter_local_notifications_platform_interface timezone] - flutter_rating_bar 4.0.1 [flutter] - flutter_staggered_animations 1.1.1 [flutter] - flutter_staggered_grid_view 0.7.0 [flutter] - flutter_svg 2.0.10+1 [flutter http vector_graphics vector_graphics_codec vector_graphics_compiler] - flutter_webview_plugin 0.4.0 [flutter] - fluttertoast 8.2.6 [flutter flutter_web_plugins web] - font_awesome_flutter 10.7.0 [flutter] - get_it 7.7.0 [async collection meta] - google_sign_in 6.2.1 [flutter google_sign_in_android google_sign_in_ios google_sign_in_platform_interface google_sign_in_web] - grecaptcha 0.0.6 [flutter plugin_platform_interface] - http 1.2.1 [async http_parser meta web] - http_interceptor 2.0.0-beta.8 [http] - image_cropper 5.0.1 [flutter image_cropper_platform_interface image_cropper_for_web] - image_gallery_saver 2.0.3 [flutter] - image_picker 1.1.2 [flutter image_picker_android image_picker_for_web image_picker_ios image_picker_linux image_picker_macos image_picker_platform_interface image_picker_windows] - internet_connection_checker 1.0.0+1 - intl 0.18.1 [clock meta path] - introduction_screen 3.1.14 [flutter collection dots_indicator flutter_keyboard_visibility] - just_the_tooltip 0.0.12 [flutter] - mime 1.0.5 - mixpanel_flutter 2.2.0 [flutter flutter_web_plugins js] - multi_select_flutter 4.1.3 [flutter collection] - open_filex 4.4.0 [flutter ffi] - package_info_plus 8.0.0 [ffi flutter flutter_web_plugins http meta path package_info_plus_platform_interface web win32 clock] - path 1.9.0 - path_provider 2.1.3 [flutter path_provider_android path_provider_foundation path_provider_linux path_provider_platform_interface path_provider_windows] - permission_handler 11.3.1 [flutter meta permission_handler_android permission_handler_apple permission_handler_html permission_handler_windows permission_handler_platform_interface] - readmore 3.0.0 [flutter] - rxdart 0.27.7 - screenshot 3.0.0 [flutter] - share_plus 9.0.0 [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 web win32] - shared_preferences 2.2.3 [flutter shared_preferences_android shared_preferences_foundation shared_preferences_linux shared_preferences_platform_interface shared_preferences_web shared_preferences_windows] - shimmer 3.0.0 [flutter] - sign_in_with_apple 6.1.0 [flutter meta sign_in_with_apple_platform_interface sign_in_with_apple_web] - sizer 2.0.15 [universal_io flutter] - stomp_dart_client 2.0.0 [web_socket_channel] - store_redirect 2.0.2 [flutter] - syncfusion_flutter_datepicker 25.2.7 [flutter intl syncfusion_flutter_core] - talkjs_flutter 0.11.0 [flutter talkjs_flutter_inappwebview crypto firebase_core firebase_messaging flutter_local_notifications http flutter_apns_only permission_handler url_launcher shared_preferences] - url_launcher 6.3.0 [flutter url_launcher_android url_launcher_ios url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_launcher_windows] - video_compress 3.1.2 [flutter] - video_player 2.8.6 [flutter html video_player_android video_player_avfoundation video_player_platform_interface video_player_web] - video_thumbnail 0.5.3 [flutter] - video_trimmer 3.0.1 [flutter video_player ffmpeg_kit_flutter video_thumbnail path_provider intl path transparent_image] - videosdk 1.1.12 [flutter flutter_web_plugins plugin_platform_interface random_string flutter_webrtc events2 collection sdp_transform h264_profile_level_id flutter_foreground_task synchronized http encrypt videosdk_room_stats videosdk_otel dart_webrtc device_info_plus platform_detect web permission_handler] - vimeo_player_flutter 0.1.0 [flutter webview_flutter] - visibility_detector 0.3.3 [flutter] - wakelock 0.4.0 [flutter meta wakelock_macos wakelock_platform_interface wakelock_web] - webview_flutter_plus 0.4.5 [flutter webview_flutter mime] - youtube_player_iframe 5.1.2 [flutter meta webview_flutter webview_flutter_android webview_flutter_wkwebview url_launcher youtube_player_iframe_web] dev dependencies: - flutter_launcher_icons 0.13.1 [args checked_yaml cli_util image json_annotation path yaml] - flutter_test 0.0.0 [flutter test_api matcher path fake_async clock stack_trace vector_math leak_tracker_flutter_testing async boolean_selector characters collection leak_tracker leak_tracker_testing material_color_utilities meta source_span stream_channel string_scanner term_glyph vm_service] transitive dependencies: - _fe_analyzer_shared 67.0.0 [meta] - _flutterfire_internals 1.3.36 [collection firebase_core firebase_core_platform_interface flutter meta] - analyzer 6.4.1 [_fe_analyzer_shared collection convert crypto glob meta package_config path pub_semver source_span watcher yaml] - archive 3.6.1 [crypto path] - args 2.5.0 - asn1lib 1.5.3 - async 2.11.0 [collection meta] - bloc 8.1.4 [meta] - boolean_selector 2.1.1 [source_span string_scanner] - cached_network_image_platform_interface 4.0.0 [flutter flutter_cache_manager] - cached_network_image_web 1.2.0 [cached_network_image_platform_interface flutter flutter_cache_manager] - characters 1.3.0 - checked_yaml 2.0.3 [json_annotation source_span yaml] - cli_util 0.4.1 [meta path] - clock 1.1.1 - convert 3.1.1 [typed_data] - coverage 1.8.0 [args logging package_config path source_maps stack_trace vm_service] - cross_file 0.3.4+1 [meta web] - crypto 3.0.3 [typed_data] - csslib 0.17.3 [source_span] - dart_webrtc 1.4.4 [collection js logging meta platform_detect synchronized web webrtc_interface] - dbus 0.7.10 [args ffi meta xml] - device_info_plus_platform_interface 7.0.0 [flutter meta plugin_platform_interface] - dots_indicator 2.1.2 [flutter] - encrypt 5.0.3 [args asn1lib clock collection crypto pointycastle] - events2 1.0.0 - facebook_auth_desktop 1.0.3 [flutter http flutter_secure_storage flutter_facebook_auth_platform_interface] - fake_async 1.3.1 [clock collection] - ffi 2.1.2 - ffmpeg_kit_flutter 6.0.3 [ffmpeg_kit_flutter_platform_interface flutter] - ffmpeg_kit_flutter_platform_interface 0.2.1 [flutter plugin_platform_interface] - file 7.0.0 [meta path] - file_selector_linux 0.9.2+1 [cross_file file_selector_platform_interface flutter] - file_selector_macos 0.9.4 [cross_file file_selector_platform_interface flutter] - file_selector_platform_interface 2.6.2 [cross_file flutter http plugin_platform_interface] - file_selector_windows 0.9.3+1 [cross_file file_selector_platform_interface flutter] - firebase_analytics_platform_interface 4.0.0 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface] - firebase_analytics_web 0.5.7+8 [_flutterfire_internals firebase_analytics_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins] - firebase_core_platform_interface 5.0.0 [collection flutter flutter_test meta plugin_platform_interface] - firebase_core_web 2.17.1 [firebase_core_platform_interface flutter flutter_web_plugins meta web] - firebase_crashlytics_platform_interface 3.6.36 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface] - firebase_messaging_platform_interface 4.5.38 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface] - firebase_messaging_web 3.8.8 [_flutterfire_internals firebase_core firebase_core_web firebase_messaging_platform_interface flutter flutter_web_plugins meta web] - fixnum 1.1.0 - flutter_apns_only 1.6.0 [flutter] - flutter_cache_manager 3.3.2 [clock collection file flutter http path path_provider rxdart sqflite uuid] - flutter_facebook_auth_platform_interface 5.0.0 [flutter plugin_platform_interface] - flutter_facebook_auth_web 5.0.0 [flutter flutter_web_plugins js flutter_facebook_auth_platform_interface] - flutter_foreground_task 6.1.3 [flutter plugin_platform_interface shared_preferences] - flutter_inappwebview_internal_annotations 1.1.1 - flutter_keyboard_visibility 6.0.0 [meta flutter_keyboard_visibility_platform_interface flutter_keyboard_visibility_linux flutter_keyboard_visibility_macos flutter_keyboard_visibility_web flutter_keyboard_visibility_windows flutter] - flutter_keyboard_visibility_linux 1.0.0 [flutter_keyboard_visibility_platform_interface flutter] - flutter_keyboard_visibility_macos 1.0.0 [flutter_keyboard_visibility_platform_interface flutter] - flutter_keyboard_visibility_platform_interface 2.0.0 [flutter meta plugin_platform_interface] - flutter_keyboard_visibility_web 2.0.0 [flutter_keyboard_visibility_platform_interface flutter_web_plugins flutter] - flutter_keyboard_visibility_windows 1.0.0 [flutter_keyboard_visibility_platform_interface flutter] - flutter_local_notifications_linux 4.0.0+1 [dbus ffi flutter flutter_local_notifications_platform_interface path xdg_directories] - flutter_local_notifications_platform_interface 7.1.0 [flutter plugin_platform_interface] - flutter_plugin_android_lifecycle 2.0.20 [flutter] - flutter_secure_storage 9.2.2 [flutter flutter_secure_storage_linux flutter_secure_storage_macos flutter_secure_storage_platform_interface flutter_secure_storage_web flutter_secure_storage_windows meta] - flutter_secure_storage_linux 1.2.1 [flutter flutter_secure_storage_platform_interface] - flutter_secure_storage_macos 3.1.2 [flutter flutter_secure_storage_platform_interface] - flutter_secure_storage_platform_interface 1.1.2 [flutter plugin_platform_interface] - flutter_secure_storage_web 1.2.1 [flutter flutter_secure_storage_platform_interface flutter_web_plugins js] - flutter_secure_storage_windows 3.1.2 [ffi flutter flutter_secure_storage_platform_interface path path_provider win32] - flutter_web_plugins 0.0.0 [flutter characters collection material_color_utilities meta vector_math] - flutter_webrtc 0.10.3 [collection dart_webrtc flutter path_provider web webrtc_interface] - flutter_widget_from_html_core 0.8.5+3 [csslib flutter fwfh_text_style html] - frontend_server_client 4.0.0 [async path] - fwfh_text_style 2.23.8 [flutter] - glob 2.1.2 [async collection file path string_scanner] - google_identity_services_web 0.3.1+1 [meta web] - google_sign_in_android 6.1.24 [flutter google_sign_in_platform_interface] - google_sign_in_ios 5.7.6 [flutter google_sign_in_platform_interface] - google_sign_in_platform_interface 2.4.5 [flutter plugin_platform_interface] - google_sign_in_web 0.12.4 [flutter flutter_web_plugins google_identity_services_web google_sign_in_platform_interface http web] - h264_profile_level_id 0.2.1 [test] - html 0.15.4 [csslib source_span] - http_multi_server 3.2.1 [async] - http_parser 4.0.2 [collection source_span string_scanner typed_data] - image 4.2.0 [archive meta xml] - image_cropper_for_web 3.0.0 [flutter flutter_web_plugins image_cropper_platform_interface js] - image_cropper_platform_interface 5.0.0 [flutter plugin_platform_interface http] - image_picker_android 0.8.12+3 [flutter flutter_plugin_android_lifecycle image_picker_platform_interface] - image_picker_for_web 3.0.4 [flutter flutter_web_plugins image_picker_platform_interface mime web] - image_picker_ios 0.8.12 [flutter image_picker_platform_interface] - image_picker_linux 0.2.1+1 [file_selector_linux file_selector_platform_interface flutter image_picker_platform_interface] - image_picker_macos 0.2.1+1 [file_selector_macos file_selector_platform_interface flutter image_picker_platform_interface] - image_picker_platform_interface 2.10.0 [cross_file flutter http plugin_platform_interface] - image_picker_windows 0.2.1+1 [file_selector_platform_interface file_selector_windows flutter image_picker_platform_interface] - infinite_listview 1.1.0 [flutter] - io 1.0.4 [meta path string_scanner] - js 0.6.7 [meta] - json_annotation 4.9.0 [meta] - leak_tracker 10.0.4 [clock collection meta path vm_service] - leak_tracker_flutter_testing 3.0.3 [flutter leak_tracker leak_tracker_testing matcher meta] - leak_tracker_testing 3.0.1 [leak_tracker matcher meta] - list_counter 1.0.2 - logging 1.2.0 - matcher 0.12.16+1 [async meta stack_trace term_glyph test_api] - material_color_utilities 0.8.0 [collection] - meta 1.12.0 - nested 1.0.0 [flutter] - node_preamble 2.0.2 - numberpicker 2.1.2 [flutter infinite_listview] - octo_image 2.0.0 [flutter] - package_config 2.1.0 [path] - package_info_plus_platform_interface 3.0.0 [flutter meta plugin_platform_interface] - path_parsing 1.0.1 [vector_math meta] - path_provider_android 2.2.5 [flutter path_provider_platform_interface] - path_provider_foundation 2.4.0 [flutter path_provider_platform_interface] - path_provider_linux 2.2.1 [ffi flutter path path_provider_platform_interface xdg_directories] - path_provider_platform_interface 2.1.2 [flutter platform plugin_platform_interface] - path_provider_windows 2.2.1 [ffi flutter path path_provider_platform_interface win32] - permission_handler_android 12.0.6 [flutter permission_handler_platform_interface] - permission_handler_apple 9.4.5 [flutter permission_handler_platform_interface] - permission_handler_html 0.1.1 [flutter flutter_web_plugins permission_handler_platform_interface] - permission_handler_platform_interface 4.2.1 [flutter meta plugin_platform_interface] - permission_handler_windows 0.2.1 [flutter permission_handler_platform_interface] - petitparser 6.0.2 [meta] - platform 3.1.5 - platform_detect 2.0.11 [meta pub_semver] - plugin_platform_interface 2.1.8 [meta] - pointycastle 3.9.1 [collection convert js] - pool 1.5.1 [async stack_trace] - protobuf 2.1.0 [fixnum collection meta] - provider 6.1.2 [collection flutter nested] - pub_semver 2.1.4 [collection meta] - quiver 3.2.1 [matcher] - random_string 2.3.1 - sdp_transform 0.3.2 - share_plus_platform_interface 4.0.0 [cross_file flutter meta mime plugin_platform_interface path_provider uuid] - shared_preferences_android 2.2.3 [flutter shared_preferences_platform_interface] - shared_preferences_foundation 2.4.0 [flutter shared_preferences_platform_interface] - shared_preferences_linux 2.3.2 [file flutter path path_provider_linux path_provider_platform_interface shared_preferences_platform_interface] - shared_preferences_platform_interface 2.3.2 [flutter plugin_platform_interface] - shared_preferences_web 2.3.0 [flutter flutter_web_plugins shared_preferences_platform_interface web] - shared_preferences_windows 2.3.2 [file flutter path path_provider_platform_interface path_provider_windows shared_preferences_platform_interface] - shelf 1.4.1 [async collection http_parser path stack_trace stream_channel] - shelf_packages_handler 3.0.2 [path shelf shelf_static] - shelf_static 1.1.2 [convert http_parser mime path shelf] - shelf_web_socket 1.0.4 [shelf stream_channel web_socket_channel] - sign_in_with_apple_platform_interface 1.1.0 [flutter plugin_platform_interface meta] - sign_in_with_apple_web 2.1.0 [flutter flutter_web_plugins sign_in_with_apple_platform_interface] - sky_engine 0.0.99 - source_map_stack_trace 2.1.1 [path source_maps stack_trace] - source_maps 0.10.12 [source_span] - source_span 1.10.0 [collection path term_glyph] - sprintf 7.0.0 - sqflite 2.3.3+1 [flutter sqflite_common path] - sqflite_common 2.5.4 [synchronized path meta] - stack_trace 1.11.1 [path] - stream_channel 2.1.2 [async] - string_scanner 1.2.0 [source_span] - syncfusion_flutter_core 25.2.7 [vector_math flutter] - synchronized 3.1.0+1 - talkjs_flutter_inappwebview 6.0.7 [flutter flutter_web_plugins js flutter_inappwebview_internal_annotations] - term_glyph 1.2.1 - test 1.25.2 [analyzer async boolean_selector collection coverage http_multi_server io js matcher node_preamble package_config path pool shelf shelf_packages_handler shelf_static shelf_web_socket source_span stack_trace stream_channel test_api test_core typed_data web_socket_channel webkit_inspection_protocol yaml] - test_api 0.7.0 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph] - test_core 0.6.0 [analyzer args async boolean_selector collection coverage frontend_server_client glob io meta package_config path pool source_map_stack_trace source_maps source_span stack_trace stream_channel test_api vm_service yaml] - timezone 0.9.3 [path] - transparent_image 2.0.1 - typed_data 1.3.2 [collection] - universal_io 2.2.2 [collection meta typed_data] - url_launcher_android 6.3.3 [flutter url_launcher_platform_interface] - url_launcher_ios 6.3.0 [flutter url_launcher_platform_interface] - url_launcher_linux 3.1.1 [flutter url_launcher_platform_interface] - url_launcher_macos 3.2.0 [flutter url_launcher_platform_interface] - url_launcher_platform_interface 2.3.2 [flutter plugin_platform_interface] - url_launcher_web 2.3.1 [flutter flutter_web_plugins url_launcher_platform_interface web] - url_launcher_windows 3.1.1 [flutter url_launcher_platform_interface] - uuid 4.4.0 [crypto sprintf meta fixnum] - vector_graphics 1.1.11+1 [flutter http vector_graphics_codec] - vector_graphics_codec 1.1.11+1 - vector_graphics_compiler 1.1.11+1 [args meta path_parsing xml vector_graphics_codec path] - vector_math 2.1.4 - video_player_android 2.5.0 [flutter video_player_platform_interface] - video_player_avfoundation 2.6.1 [flutter video_player_platform_interface] - video_player_platform_interface 6.2.2 [flutter plugin_platform_interface] - video_player_web 2.3.1 [flutter flutter_web_plugins video_player_platform_interface web] - videosdk_otel 0.0.2 [collection fixnum http logging protobuf quiver meta] - videosdk_room_stats 0.0.4 [events2 flutter] - vm_service 14.2.1 - wakelock_macos 0.1.0+3 [flutter flutter_web_plugins wakelock_platform_interface] - wakelock_platform_interface 0.2.1+3 [flutter meta] - wakelock_plus 1.2.5 [flutter flutter_web_plugins meta wakelock_plus_platform_interface win32 dbus package_info_plus web] - wakelock_plus_platform_interface 1.2.1 [flutter plugin_platform_interface meta] - wakelock_web 0.2.0+3 [flutter flutter_web_plugins js wakelock_platform_interface] - watcher 1.1.0 [async path] - web 0.5.1 - web_socket_channel 2.4.5 [async crypto stream_channel web] - webkit_inspection_protocol 1.2.1 [logging] - webrtc_interface 1.2.0 - webview_flutter 4.8.0 [flutter webview_flutter_android webview_flutter_platform_interface webview_flutter_wkwebview] - webview_flutter_android 3.16.4 [flutter webview_flutter_platform_interface] - webview_flutter_platform_interface 2.10.0 [flutter meta plugin_platform_interface] - webview_flutter_wkwebview 3.13.1 [flutter path webview_flutter_platform_interface] - win32 5.5.1 [ffi] - win32_registry 1.1.3 [ffi win32] - xdg_directories 1.0.4 [meta path] - xml 6.5.0 [collection meta petitparser] - yaml 3.1.2 [collection source_span string_scanner] - youtube_player_iframe_web 3.0.2 [http flutter flutter_web_plugins web webview_flutter_platform_interface] ```

Additional context and comments

No response

Lyokone commented 2 weeks ago

Hello @tarunkhatri, I'm unable to reproduce on my side. Can you provide a reproduction sample? Thanks

dgaedcke commented 2 weeks ago

I'm also getting channel-error (web app) when simply using firebase_auth: ^5.1.0 ... but only when running in the cloud I'm able to sign in anonymously when running from localhost, but not when the app runs on Firebase Hosting. This is all very confusing because firebase_auth shows it supports web, and yet we have a new library (that links to deprecated docs) called firebase_auth_web.

Can someone clarify which package we should be using and why "firebase_auth" is marked as supporting web if it does not?

And why does firebase_auth_web point to obsolete docs? Which should we use and why??

rambozzang commented 2 weeks ago

I am also experiencing this problem suddenly, only on IOS.

dgaedcke commented 1 week ago

any updates on this? ... my project is currently stuck

tarunkhatri commented 1 week ago

Finally i have fixed the issue.

We were using talk_js which was using firebase_core and messaging, they were using lower version so i have forked repo and updated all firebase versions which fixed the issue and they were using flutter_apns_only which was also causing problem for that i have added

<key>flutter_apns.disable_swizzling</key>
<true/>

now our project is compiling and ios app is running, but ios app is crashing on SignIn with google.

rambozzang commented 1 week ago

@tarunkhatri Oh, even if I put that option above and run it, I still can't init Firebase and the app doesn't run.

Lyokone commented 1 week ago

I'm still waiting for a complete reproduction sample so I can investigate what is happening.

rambozzang commented 1 week ago

If you're like me I was getting conflicts with certain packages. We'll try to contact the package owner. package :flutter_naver_login source : AppDelegate.swift I fixed it by modifying the AppDelegate.swift file.

dgaedcke commented 1 week ago

I'm still waiting for a complete reproduction sample so I can investigate what is happening.

I can give you access to our repo and GCP project if it will help, but anonymous login works fine from localhost. It's only when running on Firebase Hosting that I'm seeing this channel-error! So you would have to deploy and review the JS console to see this error!

Can you answer my question from above: For web, should we be using firebase_auth or firebase_auth_web?? And if not firebase_auth_web, why is it still being updated (very recently) but points to deprecated docs?

google-oss-bot commented 2 days ago

Hey @tarunkhatri. 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!