Open heshesh2010 opened 1 week ago
Hi @heshesh2010 . I'm unable to reproduce this issue on my end. What version of firebase_auth
are you using?
Hi @heshesh2010 . I'm unable to reproduce this issue on my end. What version of
firebase_auth
are you using?
firebase_auth 5.2.0
I'm still unable to reproduce the error with the above mentioned version. Can you provide a minimal sample code reproducing this issue?
I'm still unable to reproduce the error with the above mentioned version. Can you provide a minimal sample code reproducing this issue?
I think the bug from app check plugin , cuz I have enabled it in the firebase console via debug token
I'm still unable to reproduce this issue. Kindly provide the full stack trace of the error as well as a minimal reproducible code.
I am getting the same error
it occurred when i updated to 5.2.0
edit: still occurs when i downgrade
@heshesh2010 did you get a solution for this
Getting this as well. I started my app from a new project just to see if it was some configuration. I only have riverpod, firebase, and firebase auth.
firebase_auth: ^5.2.0
Happens with
void onPressed() async {
await FirebaseAuth.instance.verifyPhoneNumber(
FirebaseAuth/PhoneAuthProvider.swift:76: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value
My Info.plist was missing this:
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>firebase auth</string>
<key>CFBundleURLSchemes</key>
<array>
<string>Add your Encoded App ID from the firebase ios settings</string>
</array>
</dict>
</array>
@tenhaus Were you able to resolve this? Currently facing the same issue.
@tenhaus Were you able to resolve this? Currently facing the same issue. @SakshamApplore Yeah look at my comment just about yours
@tenhaus we have already added this but issue is still same
My Info.plist was missing this:
<key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleTypeRole</key> <string>Editor</string> <key>CFBundleURLName</key> <string>firebase auth</string> <key>CFBundleURLSchemes</key> <array> <string>Add your Encoded App ID from the firebase ios settings</string> </array> </dict> </array>
I did this and it solved the issue in simulator but issue still exists in real devices
Is there an existing issue for this?
Which plugins are affected?
Auth
Which platforms are affected?
iOS
Description
Hello , when try to login user in flutter with phone number via firebase auth I got ios native error
Thread 33: Fatal error: Unexpectedly found nil while unwrappi
Reproducing the issue
Hello , when try to login user in flutter with phone number via firebase auth I got ios native error
Thread 33: Fatal error: Unexpectedly found nil while unwrappi
Firebase Core version
^3.4.0
Flutter Version
3.24.1
Relevant Log Output
No response
Flutter dependencies
Expand
Flutter dependencies
snippet```yaml dependencies: - cached_network_image 3.4.0 [cached_network_image_platform_interface cached_network_image_web flutter flutter_cache_manager octo_image] - connectivity_plus 6.0.5 [flutter flutter_web_plugins connectivity_plus_platform_interface web meta nm collection] - country_code_picker 2.0.2 [flutter modal_bottom_sheet collection universal_platform] - cupertino_icons 1.0.8 - curl_logger_dio_interceptor 1.0.0 [dio] - dartz 0.10.1 - device_info_plus 10.1.2 [device_info_plus_platform_interface ffi file flutter flutter_web_plugins meta web win32 win32_registry] - dio 5.6.0 [async http_parser meta path dio_web_adapter] - dio_smart_retry 6.0.0 [dio http_parser path] - equatable 2.0.5 [collection meta] - firebase_app_check 0.3.0+5 [firebase_app_check_platform_interface firebase_app_check_web firebase_core firebase_core_platform_interface flutter] - firebase_auth 5.2.0 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta] - firebase_core 3.4.0 [firebase_core_platform_interface firebase_core_web flutter meta] - firebase_crashlytics 4.1.0 [firebase_core firebase_core_platform_interface firebase_crashlytics_platform_interface flutter stack_trace] - firebase_messaging 15.1.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_datetime_picker 1.5.1 [flutter] - flutter_lints 4.0.0 [lints] - flutter_local_notifications 17.2.2 [clock flutter flutter_local_notifications_linux flutter_local_notifications_platform_interface timezone] - flutter_localizations 0.0.0 [flutter intl characters clock collection material_color_utilities meta path vector_math] - flutter_screenutil 5.9.3 [flutter] - flutter_spinkit 5.2.1 [flutter] - flutter_svg 2.0.10+1 [flutter http vector_graphics vector_graphics_codec vector_graphics_compiler] - fluttertoast 8.2.8 [flutter flutter_web_plugins web] - freezed_annotation 2.4.4 [collection json_annotation meta] - get_it 7.7.0 [async collection meta] - get_storage 2.1.1 [flutter get path_provider] - 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] - infinite_scroll_pagination 4.0.0 [flutter flutter_staggered_grid_view sliver_tools] - intl 0.19.0 [clock meta path] - introduction_screen 3.1.14 [flutter collection dots_indicator flutter_keyboard_visibility] - json_annotation 4.9.0 [meta] - logger 2.4.0 - logging 1.2.0 - pausable_timer 3.1.0+3 [clock] - permission_handler 11.3.1 [flutter meta permission_handler_android permission_handler_apple permission_handler_html permission_handler_windows permission_handler_platform_interface] - pinput 4.0.0 [flutter smart_auth universal_platform] - pretty_dio_logger 1.4.0 [dio] - pull_to_refresh 2.0.0 [flutter] - refreshed 2.8.1 [flutter flutter_web_plugins web] - rounded_loading_button_plus 3.0.1 [flutter rxdart] - rxdart 0.28.0 - shared_preferences 2.3.2 [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] - video_player 2.9.1 [flutter html video_player_android video_player_avfoundation video_player_platform_interface video_player_web] - webview_flutter 4.9.0 [flutter webview_flutter_android webview_flutter_platform_interface webview_flutter_wkwebview] - zego_uikit_prebuilt_call 4.15.4 [flutter zego_uikit zego_plugin_adapter zego_uikit_signaling_plugin zego_zpns zego_callkit vibration audioplayers statemachine uuid permission_handler shared_preferences plugin_platform_interface package_info_plus flutter_callkit_incoming_yoer] - zego_uikit_signaling_plugin 2.8.2 [flutter zego_plugin_adapter zego_zim zego_zpns zego_callkit flutter_logs plugin_platform_interface] dev dependencies: - build_runner 2.4.12 [analyzer args async 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] - freezed 2.5.7 [analyzer build build_config collection meta source_gen freezed_annotation json_annotation dart_style] - json_serializable 6.8.0 [analyzer async build build_config collection json_annotation meta path pub_semver pubspec_parse source_gen source_helper] dependency overrides: - intl 0.19.0 [clock meta path] transitive dependencies: - _fe_analyzer_shared 72.0.0 [meta] - _flutterfire_internals 1.3.41 [collection firebase_core firebase_core_platform_interface flutter meta] - _macros 0.3.2 - analyzer 6.7.0 [_fe_analyzer_shared collection convert crypto glob macros meta package_config path pub_semver source_span watcher yaml] - args 2.5.0 - asn1lib 1.5.3 - async 2.11.0 [collection meta] - audioplayers 6.1.0 [audioplayers_android audioplayers_darwin audioplayers_linux audioplayers_platform_interface audioplayers_web audioplayers_windows file flutter http meta path_provider synchronized uuid] - audioplayers_android 5.0.0 [audioplayers_platform_interface flutter] - audioplayers_darwin 6.0.0 [audioplayers_platform_interface flutter] - audioplayers_linux 4.0.0 [audioplayers_platform_interface flutter] - audioplayers_platform_interface 7.0.0 [collection flutter meta plugin_platform_interface] - audioplayers_web 5.0.1 [audioplayers_platform_interface flutter flutter_web_plugins web] - audioplayers_windows 4.0.0 [audioplayers_platform_interface flutter] - boolean_selector 2.1.1 [source_span string_scanner] - build 2.4.1 [analyzer async convert crypto glob logging meta package_config path] - build_config 1.1.1 [checked_yaml json_annotation path pubspec_parse yaml] - build_daemon 4.0.2 [built_collection built_value crypto http_multi_server logging path pool shelf shelf_web_socket stream_transform watcher web_socket_channel] - build_resolvers 2.4.2 [analyzer async build collection convert crypto graphs logging package_config path pool pub_semver stream_transform yaml] - build_runner_core 7.3.2 [async build build_config build_resolvers collection convert crypto glob graphs json_annotation logging meta package_config path pool timing watcher yaml] - built_collection 5.1.1 - built_value 8.9.2 [built_collection collection fixnum meta] - cached_network_image_platform_interface 4.1.1 [flutter flutter_cache_manager] - cached_network_image_web 1.3.0 [cached_network_image_platform_interface flutter flutter_cache_manager] - characters 1.3.0 - checked_yaml 2.0.3 [json_annotation source_span yaml] - clock 1.1.1 - code_builder 4.10.0 [built_collection built_value collection matcher meta] - collection 1.18.0 - connectivity_plus_platform_interface 2.0.1 [flutter meta plugin_platform_interface] - convert 3.1.1 [typed_data] - cross_file 0.3.4+2 [meta web] - crypto 3.0.5 [typed_data] - csslib 1.0.0 [source_span] - dart_style 2.3.6 [analyzer args collection path pub_semver source_span] - dbus 0.7.10 [args ffi meta xml] - device_info_plus_platform_interface 7.0.1 [flutter meta plugin_platform_interface] - dio_web_adapter 2.0.0 [dio http_parser meta web] - dots_indicator 2.1.2 [flutter] - encrypt 5.0.3 [args asn1lib clock collection crypto pointycastle] - fake_async 1.3.1 [clock collection] - ffi 2.1.3 - file 7.0.0 [meta path] - file_picker 8.0.7 [flutter flutter_web_plugins flutter_plugin_android_lifecycle plugin_platform_interface ffi path win32 cross_file web] - 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+2 [cross_file file_selector_platform_interface flutter] - firebase_app_check_platform_interface 0.1.0+35 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface] - firebase_app_check_web 0.1.2+13 [_flutterfire_internals firebase_app_check_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins web] - firebase_auth_platform_interface 7.4.4 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface] - firebase_auth_web 5.12.6 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser meta web] - firebase_core_platform_interface 5.2.1 [collection flutter flutter_test meta plugin_platform_interface] - firebase_core_web 2.17.5 [firebase_core_platform_interface flutter flutter_web_plugins meta web] - firebase_crashlytics_platform_interface 3.6.41 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface] - firebase_messaging_platform_interface 4.5.43 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface] - firebase_messaging_web 3.8.13 [_flutterfire_internals firebase_core firebase_core_web firebase_messaging_platform_interface flutter flutter_web_plugins meta web] - fixnum 1.1.0 - flutter_cache_manager 3.4.1 [clock collection file flutter http path path_provider rxdart sqflite uuid] - flutter_callkit_incoming_yoer 2.0.4+1 [flutter json_annotation] - 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.1 [dbus ffi flutter flutter_local_notifications_platform_interface path xdg_directories] - flutter_local_notifications_platform_interface 7.2.0 [flutter plugin_platform_interface] - flutter_logs 2.1.12 [platform flutter] - flutter_plugin_android_lifecycle 2.0.22 [flutter] - flutter_staggered_grid_view 0.7.0 [flutter] - 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] - flutter_web_plugins 0.0.0 [flutter characters collection material_color_utilities meta vector_math] - frontend_server_client 4.0.0 [async path] - get 4.6.6 [flutter] - glob 2.1.2 [async collection file path string_scanner] - graphs 2.3.2 [collection] - html 0.15.4 [csslib source_span] - http 1.2.2 [async http_parser meta web] - http_multi_server 3.2.1 [async] - http_parser 4.0.2 [collection source_span string_scanner typed_data] - image_picker_android 0.8.12+13 [flutter flutter_plugin_android_lifecycle image_picker_platform_interface] - image_picker_for_web 3.0.5 [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] - io 1.0.4 [meta path string_scanner] - js 0.6.7 [meta] - leak_tracker 10.0.5 [clock collection meta path vm_service] - leak_tracker_flutter_testing 3.0.5 [flutter leak_tracker leak_tracker_testing matcher meta] - leak_tracker_testing 3.0.1 [leak_tracker matcher meta] - lints 4.0.0 - macros 0.1.2-main.4 [_macros] - matcher 0.12.16+1 [async meta stack_trace term_glyph test_api] - material_color_utilities 0.11.1 [collection] - meta 1.15.0 - mime 1.0.6 - modal_bottom_sheet 3.0.0 [flutter] - native_device_orientation 2.0.3 [flutter plugin_platform_interface] - nm 0.5.0 [dbus] - octo_image 2.1.0 [flutter] - package_config 2.1.0 [path] - package_info_plus 8.0.2 [ffi flutter flutter_web_plugins http meta path package_info_plus_platform_interface web win32 clock] - package_info_plus_platform_interface 3.0.1 [flutter meta plugin_platform_interface] - path 1.9.0 - path_parsing 1.0.1 [vector_math meta] - path_provider 2.1.4 [flutter path_provider_android path_provider_foundation path_provider_linux path_provider_platform_interface path_provider_windows] - path_provider_android 2.2.10 [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.3.0 [ffi flutter path path_provider_platform_interface] - permission_handler_android 12.0.12 [flutter permission_handler_platform_interface] - permission_handler_apple 9.4.5 [flutter permission_handler_platform_interface] - permission_handler_html 0.1.3+2 [flutter flutter_web_plugins permission_handler_platform_interface web] - permission_handler_platform_interface 4.2.2 [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 - plugin_platform_interface 2.1.8 [meta] - pointycastle 3.9.1 [collection convert js] - pool 1.5.1 [async stack_trace] - pub_semver 2.1.4 [collection meta] - pubspec_parse 1.3.0 [checked_yaml collection json_annotation pub_semver yaml] - shared_preferences_android 2.3.2 [flutter shared_preferences_platform_interface] - shared_preferences_foundation 2.5.2 [flutter shared_preferences_platform_interface] - shared_preferences_linux 2.4.1 [file flutter path path_provider_linux path_provider_platform_interface shared_preferences_platform_interface] - shared_preferences_platform_interface 2.4.1 [flutter plugin_platform_interface] - shared_preferences_web 2.4.2 [flutter flutter_web_plugins shared_preferences_platform_interface web] - shared_preferences_windows 2.4.1 [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_web_socket 2.0.0 [shelf stream_channel web_socket_channel] - sky_engine 0.0.99 - sliver_tools 0.2.12 [flutter] - smart_auth 2.0.0 [flutter flutter_web_plugins] - source_gen 1.5.0 [analyzer async build dart_style glob path source_span yaml] - source_helper 1.3.4 [analyzer collection source_gen] - 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+2 [synchronized path meta] - stack_trace 1.11.1 [path] - statemachine 3.3.1 [meta] - stream_channel 2.1.2 [async] - stream_transform 2.1.0 - string_scanner 1.2.0 [source_span] - synchronized 3.2.0 - term_glyph 1.2.1 - test_api 0.7.2 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph] - timezone 0.9.4 [path] - timing 1.0.1 [json_annotation] - typed_data 1.3.2 [collection] - universal_io 2.2.2 [collection meta typed_data] - universal_platform 1.1.0 - uuid 4.4.2 [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 - vibration 1.9.0 [flutter vibration_platform_interface] - vibration_platform_interface 0.0.1 [flutter plugin_platform_interface device_info_plus] - video_player_android 2.7.2 [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.2 [flutter flutter_web_plugins video_player_platform_interface web] - visibility_detector 0.4.0+2 [flutter] - vm_service 14.2.5 - wakelock_plus 1.2.8 [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] - watcher 1.1.0 [async path] - web 0.5.1 - web_socket 0.1.6 [web] - web_socket_channel 3.0.1 [async crypto stream_channel web web_socket] - webview_flutter_android 3.16.7 [flutter webview_flutter_platform_interface] - webview_flutter_platform_interface 2.10.0 [flutter meta plugin_platform_interface] - webview_flutter_wkwebview 3.15.0 [flutter path webview_flutter_platform_interface] - win32 5.5.4 [ffi] - win32_registry 1.1.4 [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] - zego_callkit 1.0.0+4 [flutter uuid plugin_platform_interface] - zego_express_engine 3.16.2 [flutter flutter_web_plugins js] - zego_plugin_adapter 2.13.0 [flutter zego_zpns zego_callkit flutter_logs] - zego_uikit 2.27.3 [flutter zego_plugin_adapter zego_express_engine zego_zpns zego_callkit encrypt permission_handler flutter_logs native_device_orientation wakelock_plus cached_network_image file_picker path plugin_platform_interface visibility_detector] - zego_zim 2.17.1 [flutter flutter_web_plugins js] - zego_zpns 2.6.0+3 [flutter flutter_web_plugins js universal_io] ```
Additional context and comments
No response