Git Product home page Git Product logo

flutterfire_desktop's Introduction

Firebase's Dart SDK

Chat on Discord

The Dart SDK allows Flutter and Dart apps to consume Firebase services.

It is an early-stage, experimental pure-Dart implementation of Firebase SDKs, without wrapping the existing Android, iOS, web, or C++ SDKs. The initial work is focused on supporting Firebase for Linux and Windows platforms.

Usage

To use this plugin, add the following dependencies to your app's pubspec.yaml file, along with the main plugin:

dependencies:
  firebase_auth: ^3.1.5
  firebase_auth_desktop: ^0.1.1-dev.0
  firebase_core: ^1.9.0
  firebase_core_desktop: ^0.1.1-dev.0

Firebase App Initialization

Unlike the Firebase Flutter SDK, the Firebase initialization is done from Dart code, which means no additional config files are required.

DEFAULT app

To initialize the default app, provide only options without a name.

await Firebase.initializeApp(
  options: const FirebaseOptions(
    apiKey: '...',
    appId: '...',
    messagingSenderId: '...',
    projectId: '...',
  )
);

Secondary app

await Firebase.initializeApp(
  name: 'SecondaryApp',
  options: const FirebaseOptions(
    apiKey: '...',
    appId: '...',
    messagingSenderId: '...',
    projectId: '...',
  )
);

Contributing

This is a community project, contributions to help it progress faster are welcome:

  1. Before starting, please read the contribution guide of FlutterFire.
  2. Refer to the projects board to see the current progress & planned future work.

flutterfire_desktop's People

Contributors

britannio avatar ehesp avatar nilsreichardt avatar pr-mais avatar ruicraveiro avatar salakar avatar timwhiting avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flutterfire_desktop's Issues

The app name in the SMS sent for phone auth is the localhost `127.0.0.1`

Issue description

When using phone authentication, the SMS sent has 127.0.0.1 as the app name. Example:

image

Context

The reCAPTCHA verification step is done on the localhost server and launched in aa WebView, which is causing auth handler to use the domain as an app name.

Phone authentication on the desktop implementation is using the Identity Platform REST API. On Firebase iOS and Android SDK, the auth handler /__/auth/handler can detect and verify the app scheme, for instance, in the iOS SDK here, couple parameters sent which result in the correct app name being sent in the SMS.

πŸ› [firebase desktop auth]Recaptcha issue

Recaptcha screen is showing white screen for many users

[Feature Request] Instead of popup window show it in default browser
or
Suggest us how to remove recaptcha

We facing lot of problem with recaptcha

my desktop app is already in prodution from 2 days

please help it asap

πŸ› [firebase_auth_desktop] Build failed on Windows

Bug report

Can't build on Windows.

Launching lib\main.dart on Windows in debug mode...
lib\main.dart:1
Nuget is not installed.
Attempting to download nuget.
/C:/Flutter/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_desktop-1.0.0/lib/firebase_core_desktop.dart(23,23): error G75B77105: Member not found: 'FirebaseOptions.fromMap'. [C:\Users\Kiatcho\Desktop\dekd\testing_firebase\build\windows\flutter\flutter_assemble.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(245,5): error MSB8066: Custom build for 'C:\Users\Kiatcho\Desktop\dekd\testing_firebase\build\windows\CMakeFiles\2c526318a023e697205130d06b8c8cdf\flutter_windows.dll.rule;C:\Users\Kiatcho\Desktop\dekd\testing_firebase\build\windows\CMakeFiles\79584bf8aa6f527b4761c533c8233e38\flutter_assemble.rule;C:\Users\Kiatcho\Desktop\dekd\testing_firebase\windows\flutter\CMakeLists.txt' exited with code 1. [C:\Users\Kiatcho\Desktop\dekd\testing_firebase\build\windows\flutter\flutter_assemble.vcxproj]
Exception: Build process failed.
Exited (sigterm)

Steps to reproduce

  1. Create a new project and add 4 packages.
firebase_auth: ^3.4.1
firebase_auth_desktop: ^1.0.0
firebase_core: ^1.19.1
firebase_core_desktop: ^1.0.0
  1. Build on Windows.

Flutter doctor

Run flutter doctor and paste the output below:

Click To Expand
[√] Flutter (Channel stable, 3.0.1, on Microsoft Windows [Version 10.0.22000.739], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.2.5)
[√] Android Studio (version 2021.2)
[√] VS Code (version 1.68.1)
[√] Connected device (3 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.17.1
Flutter SDK 3.0.1
testing_firebase 1.0.0+1

dependencies:
- cupertino_icons 1.0.5
- firebase_auth 3.4.1 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta]
- firebase_auth_desktop 1.0.0 [desktop_webview_auth firebase_auth firebase_auth_dart firebase_auth_platform_interface firebase_core firebase_core_dart flutter meta]
- firebase_core 1.19.1 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_core_desktop 1.0.0 [firebase_core_dart firebase_core_platform_interface flutter meta]
- flutter 0.0.0 [characters collection material_color_utilities meta vector_math sky_engine]

dev dependencies:
- 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 charcode collection matcher material_color_utilities meta source_span stream_channel string_scanner term_glyph]

transitive dependencies:
- _discoveryapis_commons 1.0.3 [http http_parser meta]
- async 2.8.2 [collection meta]
- boolean_selector 2.1.0 [source_span string_scanner]
- characters 1.2.0
- charcode 1.3.1
- clock 1.1.0
- collection 1.16.0
- crypto 3.0.2 [typed_data]
- desktop_webview_auth 0.0.9 [crypto flutter http]
- fake_async 1.3.0 [clock collection]
- file 6.1.2 [meta path]
- firebase_auth_dart 1.0.0 [firebase_core_dart firebaseapis googleapis_auth http meta storagebox]
- firebase_auth_platform_interface 6.3.1 [firebase_core flutter meta plugin_platform_interface]
- firebase_auth_web 3.3.19 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser intl js meta]
- firebase_core_dart 1.0.0 [collection meta]
- firebase_core_platform_interface 4.4.3 [collection flutter flutter_test meta plugin_platform_interface]
- firebase_core_web 1.6.6 [firebase_core_platform_interface flutter flutter_web_plugins js meta]
- firebaseapis 0.1.2 [_discoveryapis_commons http]
- flutter_web_plugins 0.0.0 [flutter js characters collection material_color_utilities meta vector_math]
- googleapis_auth 1.3.1 [crypto http http_parser]
- http 0.13.4 [async http_parser meta path]
- http_parser 4.0.1 [collection source_span string_scanner typed_data]
- intl 0.17.0 [clock path]
- js 0.6.4
- lints 2.0.0
- matcher 0.12.11 [stack_trace]
- material_color_utilities 0.1.4
- meta 1.7.0
- path 1.8.1
- platform 3.1.0
- plugin_platform_interface 2.1.2 [meta]
- process 4.2.4 [file path platform]
- sky_engine 0.0.99
- source_span 1.8.2 [collection path term_glyph]
- stack_trace 1.10.0 [path]
- storagebox 0.1.0+3 [collection meta path xdg_directories]
- stream_channel 2.1.0 [async]
- string_scanner 1.1.0 [charcode source_span]
- term_glyph 1.2.0
- test_api 0.4.9 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher]   
- typed_data 1.3.1 [collection]
- vector_math 2.1.2
- xdg_directories 0.2.0+1 [meta path process]

πŸ› [firebase_auth_desktop-1.0.1]Multiple Errors

Bug report

**Showing unknown errors

Steps to reproduce

Steps to reproduce the behavior:
I used latest version dont know how to reproduce

  1. See error or incorrect behavior

Expected behavior

its showing error

Sample project

Providing a minimal example project which demonstrates the bug in isolation from your main App greatly enhances the chance of a timely fix.
Please link to the public repository URL.


Additional context

Add any other context about the problem here.


Flutter doctor

Run flutter doctor and paste the output below:

Click To Expand
/E:/fluttersdk/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_desktop-1.0.1/lib/src/recaptcha_verifier.dart(59,36): error GE5CFE876: The method 'RecaptchaVerifierFactoryDesktop.delegateFor' has fewer named arguments than those of overridden method 'RecaptchaVerifierFactoryPlatform.delegateFor'. [D:\Flutter projects\Dop_Software_Code_New_Old\DESKTOP\soft_desk\build\windows\flutter\flutter_assemble.vcxproj]
/E:/fluttersdk/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_desktop-1.0.1/lib/src/recaptcha_verifier.dart(59,36): error GE5CFE876: The method 'RecaptchaVerifierFactoryDesktop.delegateFor' doesn't have the named parameter 'auth' of overridden method 'RecaptchaVerifierFactoryPlatform.delegateFor'. [D:\Flutter projects\Dop_Software_Code_New_Old\DESKTOP\soft_desk\build\windows\flutter\flutter_assemble.vcxproj]
/E:/fluttersdk/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_desktop-1.0.1/lib/src/firebase_auth_user.dart(17,54): error G45C924B7: Too few positional arguments: 3 required, 2 given. [D:\Flutter projects\Dop_Software_Code_New_Old\DESKTOP\soft_desk\build\windows\flutter\flutter_assemble.vcxproj]
/E:/fluttersdk/flutter/.pub-cache/hosted/pub.dartlang.org/fl_toast-3.1.0/lib/src/toast.dart(199,22): warning G1E0FE241: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null. [D:\Flutter projects\Dop_Software_Code_New_Old\DESKTOP\soft_desk\build\windows\flutter\flutter_assemble.vcxproj]C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(245,5): error MSB8066: Custom build for 'D:\Flutter projects\Dop_Software_Code_New_Old\DESKTOP\soft_desk\build\windows\CMakeFiles\a93e812d179b787517db322b48a3fb35\flutter_windows.dll.rule;D:\Flutter projects\Dop_Software_Code_New_Old\DESKTOP\soft_desk\build\windows\CMakeFiles\a2c4b94eb25b0947e81b0b0bca425a92\flutter_assemble.rule;D:\Flutter projects\Dop_Software_Code_New_Old\DESKTOP\soft_desk\windows\flutter\CMakeLists.txt' exited with code 1. [D:\Flutter projects\Dop_Software_Code_New_Old\DESKTOP\soft_desk\build\windows\flutter\flutter_assemble.vcxproj]

Click To Expand
PASTE OUTPUT INSIDE HERE

πŸ› [firebase_auth_desktop] `RecaptchaVerifier not implemented` when using `signInWithPhoneNumber`

Bug report

Describe the bug

[ERROR] UnimplementedError: RecaptchaVerifier is not implemented
[ERROR] #0      RecaptchaVerifierFactoryPlatform.instance
package:firebase_auth_platform_interface/…/platform_interface/platform_interface_recaptcha_verifier_factory.dart:55
#1      RecaptchaVerifier._factory
package:firebase_auth/src/recaptcha_verifier.dart:12
#2      RecaptchaVerifier._factory (package:firebase_auth/src/recaptcha_verifier.dart)
package:firebase_auth/src/recaptcha_verifier.dart:1
#3      new RecaptchaVerifier
package:firebase_auth/src/recaptcha_verifier.dart:57
#4      FirebaseAuth.signInWithPhoneNumber
package:firebase_auth/src/firebase_auth.dart:594
       

Steps to reproduce

Steps to reproduce the behavior:

run the example app provided in firebase_auth_desktop on MacOS and sign in with phone number

Expected behavior

As a platform interface package I expect to just be able to call the standard package's implementation.

Flutter doctor

Run flutter doctor and paste the output below:

Click To Expand
[βœ“] Flutter (Channel stable, 3.0.1, on macOS 12.4 21F79 darwin-arm, locale en-BE)
    β€’ Flutter version 3.0.1 at /Users/casvanluijtelaar/Tools/flutter
    β€’ Upstream repository https://github.com/flutter/flutter.git
    β€’ Framework revision fb57da5f94 (6 weeks ago), 2022-05-19 15:50:29 -0700
    β€’ Engine revision caaafc5604
    β€’ Dart version 2.17.1
    β€’ DevTools version 2.12.2

[βœ“] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    β€’ Android SDK at /Users/casvanluijtelaar/Library/Android/sdk
    β€’ Platform android-32, build-tools 32.1.0-rc1
    β€’ Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    β€’ Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    β€’ All Android licenses accepted.

[βœ“] Xcode - develop for iOS and macOS (Xcode 13.4.1)
    β€’ Xcode at /Applications/Xcode.app/Contents/Developer
    β€’ CocoaPods version 1.11.3

[βœ“] Chrome - develop for the web
    β€’ Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[βœ“] Android Studio (version 2021.2)
    β€’ Android Studio at /Applications/Android Studio.app/Contents
    β€’ Flutter plugin can be installed from:
      πŸ”¨ https://plugins.jetbrains.com/plugin/9212-flutter
    β€’ Dart plugin can be installed from:
      πŸ”¨ https://plugins.jetbrains.com/plugin/6351-dart
    β€’ Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[βœ“] VS Code (version 1.68.1)
    β€’ VS Code at /Applications/Visual Studio Code.app/Contents
    β€’ Flutter extension version 3.43.20220621

[βœ“] Connected device (2 available)
    β€’ macOS (desktop) β€’ macos  β€’ darwin-arm64   β€’ macOS 12.4 21F79 darwin-arm
    β€’ Chrome (web)    β€’ chrome β€’ web-javascript β€’ Google Chrome 103.0.5060.53

[βœ“] HTTP Host Availability
    β€’ All required HTTP hosts are available

β€’ No issues found!

Flutter dependencies

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

Click To Expand
Dart SDK 2.17.1
Flutter SDK 3.0.1
communication 5.0.0

dependencies:
- add_2_calendar 2.1.3 [flutter]
- auto_route 4.0.1 [flutter path collection meta universal_html]
- blurhash 0.2.1 [flutter string_validator]
- bottom_navy_bar 6.0.0 [flutter]
- cloud_firestore 3.1.17 [cloud_firestore_platform_interface cloud_firestore_web collection firebase_core firebase_core_platform_interface flutter meta]
- equatable 2.0.3 [collection meta]
- file_picker 4.6.1 [flutter flutter_web_plugins flutter_plugin_android_lifecycle plugin_platform_interface ffi path win32]
- firebase_auth 3.3.20 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta]
- firebase_auth_desktop 1.0.0 [desktop_webview_auth firebase_auth firebase_auth_dart firebase_auth_platform_interface firebase_core firebase_core_dart flutter meta]
- firebase_core 1.18.0 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_core_desktop 1.0.0 [firebase_core_dart firebase_core_platform_interface flutter meta]
- firebase_messaging 11.4.1 [firebase_core firebase_core_platform_interface firebase_messaging_platform_interface firebase_messaging_web flutter meta]
- firebase_remote_config 2.0.8 [firebase_core firebase_core_platform_interface firebase_remote_config_platform_interface firebase_remote_config_web flutter]
- firebase_storage 10.2.17 [firebase_core firebase_core_platform_interface firebase_storage_platform_interface firebase_storage_web flutter]
- flutter 0.0.0 [characters collection material_color_utilities meta vector_math sky_engine]
- flutter_localizations 0.0.0 [flutter intl characters clock collection material_color_utilities meta path vector_math]
- flutter_svg 1.1.0 [flutter meta path_drawing vector_math xml]
- flutter_vibrate 1.3.0 [flutter]
- freezed_annotation 2.0.3 [collection json_annotation meta]
- get_it 7.2.0 [async collection]
- image 3.2.0 [archive meta xml]
- image_compression 1.0.3 [image mime path]
- image_picker 0.8.5+3 [flutter image_picker_android image_picker_for_web image_picker_ios image_picker_platform_interface]
- image_picker_windows 0.1.0+2 [file_selector_platform_interface file_selector_windows flutter image_picker_platform_interface]
- infinite_scroll_pagination 3.2.0 [flutter sliver_tools]
- injectable 1.5.3 [get_it]
- intl 0.17.0 [clock path]
- json_annotation 4.5.0 [meta]
- keyboard_dismisser 3.0.0 [flutter]
- link_text 0.2.0 [flutter url_launcher]
- loading_animation_widget 1.2.0+2 [flutter]
- logger 1.1.0
- motion_toast 2.1.9 [flutter]
- package_info_plus 1.4.2 [flutter package_info_plus_platform_interface package_info_plus_linux package_info_plus_macos package_info_plus_windows package_info_plus_web]
- paged_vertical_calendar 1.1.3 [flutter infinite_scroll_pagination]
- path_provider 2.0.11 [flutter path_provider_android path_provider_ios path_provider_linux path_provider_macos path_provider_platform_interface path_provider_windows]
- photo_manager 2.1.2 [flutter]
- photo_view 0.14.0 [flutter]
- pinput 1.2.2 [flutter]
- provider 6.0.3 [collection flutter nested]
- shared_preferences 2.0.15 [flutter shared_preferences_android shared_preferences_ios shared_preferences_linux shared_preferences_macos shared_preferences_platform_interface shared_preferences_web shared_preferences_windows]
- url_launcher 6.1.3 [flutter url_launcher_android url_launcher_ios url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_launcher_windows]
- url_strategy 0.2.0 [flutter_web_plugins]
- video_thumbnail 0.5.0 [flutter]

dev dependencies:
- auto_route_generator 4.0.0 [build source_gen analyzer path build_runner code_builder dart_style auto_route]
- build_runner 2.1.11 [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]
- dart_code_metrics 4.15.2 [analyzer analyzer_plugin ansicolor args collection crypto file glob html meta path source_span xml yaml]
- flutter_app_name 0.1.1+packagename [yaml xml rename]
- flutter_launcher_icons 0.9.1 [image args yaml path]
- flutter_native_splash 2.2.3 [args flutter flutter_web_plugins image js lint meta path universal_io xml yaml]
- freezed 2.0.3+1 [analyzer build build_config collection meta source_gen freezed_annotation json_annotation]
- injectable_generator 1.5.3 [build source_gen path glob analyzer code_builder dart_style injectable collection]
- json_serializable 6.2.0 [analyzer async build build_config collection json_annotation meta path pub_semver pubspec_parse source_gen source_helper]
- very_good_analysis 3.0.0

dependency overrides:
- analyzer 3.4.1 [_fe_analyzer_shared collection convert crypto glob meta package_config path pub_semver source_span watcher yaml]

transitive dependencies:
- _discoveryapis_commons 1.0.3 [http http_parser meta]
- _fe_analyzer_shared 38.0.0 [meta]
- analyzer_plugin 0.10.0 [analyzer collection dart_style pub_semver yaml]
- ansicolor 2.0.1
- archive 3.3.0 [crypto path]
- args 2.3.1
- async 2.8.2 [collection meta]
- boolean_selector 2.1.0 [source_span string_scanner]
- build 2.3.0 [analyzer async convert crypto glob logging meta path]
- build_config 1.0.0 [checked_yaml json_annotation path pubspec_parse yaml]
- build_daemon 3.1.0 [built_collection built_value http_multi_server logging path pool shelf shelf_web_socket stream_transform watcher web_socket_channel]
- build_resolvers 2.0.9 [analyzer async build crypto graphs logging path package_config pool pub_semver stream_transform yaml]
- build_runner_core 7.2.3 [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.3.2 [built_collection collection fixnum meta]
- characters 1.2.0
- charcode 1.3.1
- checked_yaml 2.0.1 [json_annotation source_span yaml]
- clock 1.1.0
- cloud_firestore_platform_interface 5.5.7 [collection firebase_core flutter meta plugin_platform_interface]
- cloud_firestore_web 2.6.16 [cloud_firestore_platform_interface collection firebase_core firebase_core_web flutter flutter_web_plugins js]
- code_builder 4.1.0 [built_collection built_value collection matcher meta]
- collection 1.16.0
- convert 3.0.2 [typed_data]
- cross_file 0.3.3+1 [js meta]
- crypto 3.0.2 [typed_data]
- csslib 0.17.2 [source_span]
- dart_style 2.2.3 [analyzer args path pub_semver source_span]
- desktop_webview_auth 0.0.9 [crypto flutter http]
- fake_async 1.3.0 [clock collection]
- ffi 1.2.1
- file 6.1.2 [meta path]
- file_selector_platform_interface 2.0.4 [cross_file flutter http plugin_platform_interface]
- file_selector_windows 0.8.2+2 [cross_file file_selector_platform_interface flutter flutter_test]
- firebase_auth_dart 1.0.0 [firebase_core_dart firebaseapis googleapis_auth http meta storagebox]
- firebase_auth_platform_interface 6.2.8 [firebase_core flutter meta plugin_platform_interface]
- firebase_auth_web 3.3.17 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser intl js meta]
- firebase_core_dart 1.0.0 [collection meta]
- firebase_core_platform_interface 4.4.1 [collection flutter meta plugin_platform_interface]
- firebase_core_web 1.6.5 [firebase_core_platform_interface flutter flutter_web_plugins js meta]
- firebase_messaging_platform_interface 3.5.1 [firebase_core flutter meta plugin_platform_interface]
- firebase_messaging_web 2.4.1 [firebase_core firebase_core_web firebase_messaging_platform_interface flutter flutter_web_plugins js meta]
- firebase_remote_config_platform_interface 1.1.7 [firebase_core flutter meta plugin_platform_interface]
- firebase_remote_config_web 1.0.13 [firebase_core firebase_core_web firebase_remote_config_platform_interface flutter flutter_web_plugins js]
- firebase_storage_platform_interface 4.1.7 [collection firebase_core flutter meta plugin_platform_interface]
- firebase_storage_web 3.2.16 [async firebase_core firebase_core_web firebase_storage_platform_interface flutter flutter_web_plugins http js meta]
- firebaseapis 0.1.2 [_discoveryapis_commons http]
- fixnum 1.0.1
- flutter_plugin_android_lifecycle 2.0.6 [flutter]
- flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters charcode collection matcher material_color_utilities meta source_span stream_channel string_scanner term_glyph]
- flutter_web_plugins 0.0.0 [flutter js characters collection material_color_utilities meta vector_math]
- frontend_server_client 2.1.3 [async path]
- glob 2.0.2 [async collection file path string_scanner]
- googleapis_auth 1.3.1 [crypto http http_parser]
- graphs 2.1.0 [collection]
- html 0.15.0 [csslib source_span]
- http 0.13.4 [async http_parser meta path]
- http_multi_server 3.2.0 [async]
- http_parser 4.0.1 [collection source_span string_scanner typed_data]
- image_picker_android 0.8.5 [flutter flutter_plugin_android_lifecycle image_picker_platform_interface]
- image_picker_for_web 2.1.8 [flutter flutter_web_plugins image_picker_platform_interface]
- image_picker_ios 0.8.5+5 [flutter image_picker_platform_interface]
- image_picker_platform_interface 2.5.0 [cross_file flutter http plugin_platform_interface]
- io 1.0.3 [meta path string_scanner]
- js 0.6.4
- lint 1.8.2
- logging 1.0.2
- matcher 0.12.11 [stack_trace]
- material_color_utilities 0.1.4
- meta 1.7.0
- mime 1.0.2
- nested 1.0.0 [flutter]
- package_config 2.0.2 [path]
- package_info_plus_linux 1.0.5 [package_info_plus_platform_interface flutter path]
- package_info_plus_macos 1.3.0 [flutter]
- package_info_plus_platform_interface 1.0.2 [flutter meta plugin_platform_interface]
- package_info_plus_web 1.0.5 [flutter flutter_web_plugins http meta package_info_plus_platform_interface]
- package_info_plus_windows 1.0.5 [package_info_plus_platform_interface ffi flutter win32]
- path 1.8.1
- path_drawing 1.0.0 [vector_math meta path_parsing flutter]
- path_parsing 1.0.0 [vector_math meta]
- path_provider_android 2.0.14 [flutter path_provider_platform_interface]
- path_provider_ios 2.0.9 [flutter path_provider_platform_interface]
- path_provider_linux 2.1.7 [ffi flutter path path_provider_platform_interface xdg_directories]
- path_provider_macos 2.0.6 [flutter path_provider_platform_interface]
- path_provider_platform_interface 2.0.4 [flutter platform plugin_platform_interface]
- path_provider_windows 2.0.7 [ffi flutter path path_provider_platform_interface win32]
- petitparser 5.0.0 [meta]
- platform 3.1.0
- plugin_platform_interface 2.1.2 [meta]
- pool 1.5.0 [async stack_trace]
- process 4.2.4 [file path platform]
- pub_semver 2.1.1 [collection meta]
- pubspec_parse 1.2.0 [checked_yaml collection json_annotation pub_semver yaml]
- rename 2.0.1 [args logger]
- shared_preferences_android 2.0.12 [flutter shared_preferences_platform_interface]
- shared_preferences_ios 2.1.1 [flutter shared_preferences_platform_interface]
- shared_preferences_linux 2.1.1 [file flutter path path_provider_linux path_provider_platform_interface shared_preferences_platform_interface]
- shared_preferences_macos 2.0.4 [flutter shared_preferences_platform_interface]
- shared_preferences_platform_interface 2.0.0 [flutter]
- shared_preferences_web 2.0.4 [flutter flutter_web_plugins shared_preferences_platform_interface]
- shared_preferences_windows 2.1.1 [file flutter path path_provider_platform_interface path_provider_windows shared_preferences_platform_interface]
- shelf 1.3.0 [async collection http_parser path stack_trace stream_channel]
- shelf_web_socket 1.0.1 [shelf stream_channel web_socket_channel]
- sky_engine 0.0.99
- sliver_tools 0.2.6 [flutter]
- source_gen 1.2.2 [analyzer async build dart_style glob meta path source_span yaml]
- source_helper 1.3.2 [analyzer collection source_gen]
- source_span 1.8.2 [collection path term_glyph]
- stack_trace 1.10.0 [path]
- storagebox 0.1.0+3 [collection meta path xdg_directories]
- stream_channel 2.1.0 [async]
- stream_transform 2.0.0
- string_scanner 1.1.0 [charcode source_span]
- string_validator 0.3.0
- term_glyph 1.2.0
- test_api 0.4.9 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher]
- timing 1.0.0 [json_annotation]
- typed_data 1.3.1 [collection]
- universal_html 2.0.8 [async csslib charcode collection html meta source_span typed_data universal_io]
- universal_io 2.0.4 [collection crypto meta typed_data]
- url_launcher_android 6.0.17 [flutter url_launcher_platform_interface]
- url_launcher_ios 6.0.17 [flutter url_launcher_platform_interface]
- url_launcher_linux 3.0.1 [flutter url_launcher_platform_interface]
- url_launcher_macos 3.0.1 [flutter url_launcher_platform_interface]
- url_launcher_platform_interface 2.0.5 [flutter plugin_platform_interface]
- url_launcher_web 2.0.11 [flutter flutter_web_plugins url_launcher_platform_interface]
- url_launcher_windows 3.0.1 [flutter url_launcher_platform_interface]
- vector_math 2.1.2
- watcher 1.0.1 [async path]
- web_socket_channel 2.2.0 [async crypto stream_channel]
- win32 2.6.1 [ffi]
- xdg_directories 0.2.0+1 [meta path process]
- xml 6.1.0 [collection meta petitparser]
- yaml 3.1.1 [collection source_span string_scanner]

πŸ› [auth] Apple Auth

As i said in #49, the partial solution implemented in #65 not fix the main problem.

We need oAuth Apple Auth work in all platforms, not only in macOS. I think some changes in desktop_webview_auth is needed to make this works.

DefaultFirebaseOptions are not supported for this platform

After running into #19 and having to install the cli, create firebase_options.dart and add options: DefaultFirebaseOptions.currentPlatform when initializing the firebase App, I now run into this error:

Exception has occurred.
UnsupportedError (Unsupported operation: DefaultFirebaseOptions are not supported for this platform.)

Could this have something to do with the fact that windows can't be added as a platform on https://console.firebase.google.com?
2022-01-06_18h34_06

πŸ› firebase_auth_desktop signIn error on Windows: Bad state: No element

Bug report

Using signInWithEmailAndPassword() on Windows throws the below error

flutter: ══║ EXCEPTION CAUGHT BY FLUTTER FRAMEWORK β•žβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
flutter: The following StateError was thrown:
flutter: Bad state: No element
flutter:
flutter: When the exception was thrown, this was the stack:
flutter: #0      getFirebaseAuthException
package:firebase_auth_desktop/…/utils/desktop_utils.dart:107
flutter: #1      FirebaseAuthDesktop.createUserWithEmailAndPassword
package:firebase_auth_desktop/firebase_auth_desktop.dart:177
flutter: <asynchronous suspension>
flutter: #2      FirebaseAuth.createUserWithEmailAndPassword
package:firebase_auth/src/firebase_auth.dart:238
flutter: <asynchronous suspension>
flutter: #3      AuthService.signIn
package:liso/…/firebase/auth.service.dart:127
flutter: <asynchronous suspension>
flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════

Steps to reproduce

Steps to reproduce the behavior:

  1. Use signInWithEmailAndPassword() function

Expected behavior

To be signed in

Flutter doctor

Click To Expand
PS C:\Users\Oliver\Desktop\Projects\Flutter\Liso\app> flutter doctor -v
[√] Flutter (Channel stable, 3.0.5, on Microsoft Windows [Version 10.0.19044.1766], locale en-PH)
    β€’ Flutter version 3.0.5 at C:\Users\Oliver\fvm\versions\stable
    β€’ Upstream repository https://github.com/flutter/flutter.git
    β€’ Framework revision f1875d570e (2 weeks ago), 2022-07-13 11:24:16 -0700
    β€’ Engine revision e85ea0e79c
    β€’ Dart version 2.17.6
    β€’ DevTools version 2.12.2

[X] Android toolchain - develop for Android devices
    X Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.


[√] Chrome - develop for the web
    β€’ Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.1.6)
    β€’ Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    β€’ Visual Studio Community 2022 version 17.1.32421.90
    β€’ Windows 10 SDK version 10.0.22000.0

[!] Android Studio (not installed)
    β€’ Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).

[√] VS Code (version 1.68.1)
    β€’ VS Code at C:\Users\Oliver\AppData\Local\Programs\Microsoft VS Code
    β€’ Flutter extension version 3.42.0

[√] Connected device (3 available)
    β€’ Windows (desktop) β€’ windows β€’ windows-x64    β€’ Microsoft Windows [Version 10.0.19044.1766]
    β€’ Chrome (web)      β€’ chrome  β€’ web-javascript β€’ Google Chrome 102.0.5005.115
    β€’ Edge (web)        β€’ edge    β€’ web-javascript β€’ Microsoft Edge 103.0.1264.37

[√] HTTP Host Availability
    β€’ All required HTTP hosts are available

! Doctor found issues in 2 categories.  

Flutter dependencies

Click To Expand
- alchemy_web3 0.0.1 [console_mixin logger either_dart dio json_rpc_2 web_socket_channel pointycastle convert web3dart]
- app_settings 4.1.8 [flutter]
- badges 2.0.3 [flutter]
- bip32 2.0.0 [pointycastle hex bs58check]
- bip39 1.0.6 [pointycastle hex crypto]
- blur 3.1.0 [flutter]
- cached_network_image 3.2.1 [flutter flutter_cache_manager octo_image cached_network_image_platform_interface cached_network_image_web]
- cloud_firestore 3.4.1 [cloud_firestore_platform_interface cloud_firestore_web collection firebase_core firebase_core_platform_interface flutter meta]   
- cloud_functions 3.3.3 [cloud_functions_platform_interface cloud_functions_web firebase_core firebase_core_platform_interface flutter]
- coingecko_api 1.0.2+2 [dio intl]
- connectivity_plus 2.3.6 [flutter connectivity_plus_platform_interface connectivity_plus_linux connectivity_plus_macos connectivity_plus_web connectivity_plus_windows]
- console_mixin 0.0.1 [flutter logger]
- device_info_plus 3.2.4 [flutter device_info_plus_platform_interface device_info_plus_macos device_info_plus_linux device_info_plus_web device_info_plus_windows]
- either_dart 0.1.4
- encrypt 5.0.1 [args asn1lib clock collection crypto pointycastle]
- equatable 2.0.3 [collection meta]
- eth_sig_util 0.0.9 [pointycastle equatable collection buffer convert]
- file_picker 4.6.1 [flutter flutter_web_plugins flutter_plugin_android_lifecycle plugin_platform_interface ffi path win32]
- filesize 2.0.1
- firebase_analytics 9.3.0 [firebase_analytics_platform_interface firebase_analytics_web firebase_core firebase_core_platform_interface flutter]
- firebase_app_check 0.0.6+18 [firebase_app_check_platform_interface firebase_app_check_web firebase_core firebase_core_platform_interface flutter]       
- firebase_auth 3.4.1 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta]
- firebase_auth_desktop 1.0.1 [desktop_webview_auth firebase_auth firebase_auth_dart firebase_auth_platform_interface firebase_core firebase_core_dart flutter meta]
- firebase_auth_platform_interface 6.3.1 [firebase_core flutter meta plugin_platform_interface]
- firebase_core 1.19.2 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_core_desktop 1.0.1 [firebase_core_dart firebase_core_platform_interface flutter meta]
- firebase_crashlytics 2.8.6 [firebase_core firebase_core_platform_interface firebase_crashlytics_platform_interface flutter stack_trace]
- firebase_functions_desktop 0.2.0+2 [cloud_functions cloud_functions_platform_interface firebase_core firebase_core_dart firebase_core_desktop firebase_functions_dart flutter http meta]
- firebase_performance 0.8.2+1 [firebase_core firebase_core_platform_interface firebase_performance_platform_interface firebase_performance_web flutter]  
- firebase_remote_config 2.0.13 [firebase_core firebase_core_platform_interface firebase_remote_config_platform_interface firebase_remote_config_web flutter]
- flex_color_scheme 5.1.0 [flutter material_color_utilities]
- flutter 0.0.0 [characters collection material_color_utilities meta vector_math sky_engine]
- flutter_displaymode 0.4.0 [flutter]
- flutter_json_viewer 1.0.1 [flutter]
- flutter_local_notifications 9.7.0 [clock flutter flutter_local_notifications_linux flutter_local_notifications_platform_interface timezone]
- flutter_quill 4.2.0 [flutter collection flutter_colorpicker flutter_keyboard_visibility image_picker photo_view quiver string_validator tuple url_launcher pedantic video_player characters youtube_player_flutter diff_match_patch i18n_extension gallery_saver device_info_plus platform]
- flutter_svg 1.0.3 [flutter meta path_drawing vector_math xml]
- flutter_swipe_action_cell 3.0.4 [flutter]
- font_awesome_flutter 10.1.0 [flutter]
- get 4.6.5 [flutter]
- hex 0.2.0
- hive 2.2.3 [meta crypto]
- http 0.13.4 [async http_parser meta path]
- humanizer 2.0.0 [decimal intl meta rational]
- iconsax 0.0.8 [flutter]
- intl 0.17.0 [clock path]
- line_icons 2.0.1 [flutter]
- local_auth 2.0.2 [flutter intl local_auth_android local_auth_ios local_auth_platform_interface]
- minio 3.5.0 [meta http crypto convert xml buffer intl mime path]
- otp 3.1.1 [base32 crypto logging]
- package_info_plus 1.4.2 [flutter package_info_plus_platform_interface package_info_plus_linux package_info_plus_macos package_info_plus_windows package_info_plus_web]
- path 1.8.1
- path_provider 2.0.11 [flutter path_provider_android path_provider_ios path_provider_linux path_provider_macos path_provider_platform_interface path_provider_windows]
- percent_indicator 4.2.2 [flutter]
- purchases_flutter 3.10.0 [flutter freezed_annotation json_annotation]
- qr_flutter 4.0.0 [flutter qr]
- random_string_generator 2.0.0
- secrets 0.0.1 [firebase_core flutter]
- share_plus 4.0.10 [meta mime flutter share_plus_platform_interface share_plus_linux share_plus_macos share_plus_windows share_plus_web]
- simple_animations 4.2.0 [flutter collection]
- skeletons 0.0.3 [flutter]
- supercharged 2.1.1 [supercharged_dart flutter]
- timeago 3.2.2
- url_launcher 6.1.5 [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.6 [crypto]
- walletconnect_dart 0.0.11 [web_socket_channel uuid cryptography convert json_annotation stack_trace]
- web3dart 2.3.5 [build build_config dart_style code_builder path built_collection pointycastle convert meta http js uuid typed_data stream_channel stream_transform json_rpc_2 collection]
- window_manager 0.2.5 [flutter path screen_retriever]
- worker_manager 4.4.5 [async collection]

dev dependencies:
- build_runner 2.2.0 [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]
- dart_code_metrics 4.16.0 [analyzer analyzer_plugin ansicolor args collection crypto file glob html meta path source_span xml yaml]
- flutter_lints 2.0.1 [lints]
- flutter_native_splash 2.2.0+1 [args flutter flutter_web_plugins image js lint meta path universal_io xml yaml]
- hive_generator 1.1.3 [build source_gen hive analyzer source_helper]

transitive dependencies:
- _discoveryapis_commons 1.0.3 [http http_parser meta]
- _fe_analyzer_shared 36.0.0 [meta]
- analyzer 3.3.1 [_fe_analyzer_shared collection convert crypto glob meta package_config path pub_semver source_span watcher yaml]
- analyzer_plugin 0.9.0 [analyzer collection dart_style pub_semver yaml]
- ansicolor 2.0.1
- archive 3.3.0 [crypto path]
- args 2.3.1
- asn1lib 1.1.0
- async 2.8.2 [collection meta]
- base32 2.1.3
- boolean_selector 2.1.0 [source_span string_scanner]
- bs58check 1.0.2 [hex crypto]
- buffer 1.1.1
- build 2.3.0 [analyzer async convert crypto glob logging meta path]
- build_config 1.1.0 [checked_yaml json_annotation path pubspec_parse yaml]
- build_daemon 3.1.0 [built_collection built_value http_multi_server logging path pool shelf shelf_web_socket stream_transform watcher web_socket_channel]- build_resolvers 2.0.6 [analyzer async build crypto graphs logging path package_config pool pub_semver stream_transform yaml]
- build_runner_core 7.2.3 [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.3.0 [built_collection collection fixnum meta]
- cached_network_image_platform_interface 1.0.0 [flutter flutter_cache_manager]
- cached_network_image_web 1.0.1 [flutter flutter_cache_manager cached_network_image_platform_interface]
- characters 1.2.0
- charcode 1.3.1
- checked_yaml 2.0.1 [json_annotation source_span yaml]
- clock 1.1.0
- cloud_firestore_platform_interface 5.7.0 [collection firebase_core flutter meta plugin_platform_interface]
- cloud_firestore_web 2.8.1 [cloud_firestore_platform_interface collection firebase_core firebase_core_web flutter flutter_web_plugins js]
- cloud_functions_platform_interface 5.1.12 [firebase_core flutter meta plugin_platform_interface]
- cloud_functions_web 4.3.1 [cloud_functions_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js]
- code_builder 4.1.0 [built_collection built_value collection matcher meta]
- collection 1.16.0
- connectivity_plus_linux 1.3.0 [flutter connectivity_plus_platform_interface meta nm]
- connectivity_plus_macos 1.2.4 [connectivity_plus_platform_interface flutter]
- connectivity_plus_platform_interface 1.2.0 [flutter meta plugin_platform_interface]
- connectivity_plus_web 1.2.3 [connectivity_plus_platform_interface flutter_web_plugins flutter]
- connectivity_plus_windows 1.2.2 [connectivity_plus_platform_interface flutter]
- convert 3.0.1 [typed_data]
- cross_file 0.3.3 [js meta]
- crypto 3.0.2 [typed_data]
- cryptography 2.0.5 [collection crypto fixnum js meta typed_data]
- csslib 0.17.1 [source_span]
- dart_style 2.2.3 [analyzer args path pub_semver source_span]
- dbus 0.7.3 [args ffi meta xml]
- decimal 2.2.0 [rational]
- desktop_webview_auth 0.0.9 [crypto flutter http]
- device_info_plus_linux 2.1.1 [device_info_plus_platform_interface file flutter meta]
- device_info_plus_macos 2.2.3 [device_info_plus_platform_interface flutter]
- device_info_plus_platform_interface 2.3.0+1 [flutter meta plugin_platform_interface]
- device_info_plus_web 2.1.0 [device_info_plus_platform_interface flutter_web_plugins flutter]
- device_info_plus_windows 2.1.1 [device_info_plus_platform_interface ffi flutter win32]
- diff_match_patch 0.4.1
- dio 4.0.6 [http_parser path]
- fake_async 1.3.0 [clock collection]
- ffi 1.1.2
- file 6.1.2 [meta path]
- firebase 9.0.3 [http http_parser js]
- firebase_analytics_platform_interface 3.3.0 [firebase_core flutter meta plugin_platform_interface]
- firebase_analytics_web 0.4.2 [firebase_analytics_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js]
- firebase_app_check_platform_interface 0.0.4+12 [firebase_core flutter meta plugin_platform_interface]
- firebase_app_check_web 0.0.6+1 [firebase_app_check_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js]
- firebase_auth_dart 1.0.1 [firebase_core_dart firebaseapis googleapis_auth http meta storagebox]
- firebase_auth_web 3.3.19 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser intl js meta]        
- firebase_core_dart 1.0.1 [collection meta]
- firebase_core_platform_interface 4.5.0 [collection flutter flutter_test meta plugin_platform_interface]
- firebase_core_web 1.7.1 [firebase_core_platform_interface flutter flutter_web_plugins js meta]
- firebase_crashlytics_platform_interface 3.2.12 [collection firebase_core flutter meta plugin_platform_interface]
- firebase_functions_dart 0.1.1+2 [collection firebase_auth_dart firebase_core_dart http meta storagebox]
- firebase_performance_platform_interface 0.1.1+12 [firebase_core flutter plugin_platform_interface]
- firebase_performance_web 0.1.1+1 [firebase firebase_core firebase_core_web firebase_performance_platform_interface flutter flutter_web_plugins js]      
- firebase_remote_config_platform_interface 1.1.12 [firebase_core flutter meta plugin_platform_interface]
- firebase_remote_config_web 1.1.1 [firebase_core firebase_core_web firebase_remote_config_platform_interface flutter flutter_web_plugins js]
- firebaseapis 0.1.2 [_discoveryapis_commons http]
- fixnum 1.0.0
- flutter_blurhash 0.6.8 [flutter]
- flutter_cache_manager 3.3.0 [clock collection file flutter http path path_provider pedantic rxdart sqflite uuid]
- flutter_colorpicker 1.0.3 [flutter]
- flutter_inappwebview 5.4.3+7 [flutter]
- flutter_keyboard_visibility 5.2.0 [meta flutter_keyboard_visibility_platform_interface flutter_keyboard_visibility_web 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_local_notifications_linux 0.5.0+1 [flutter flutter_local_notifications_platform_interface dbus path xdg_directories]
- flutter_local_notifications_platform_interface 5.0.0 [flutter plugin_platform_interface]
- flutter_plugin_android_lifecycle 2.0.6 [flutter]
- flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters charcode collection matcher material_color_utilities meta source_span stream_channel string_scanner term_glyph]
- flutter_web_plugins 0.0.0 [flutter js characters collection material_color_utilities meta vector_math]
- freezed_annotation 1.1.0 [collection json_annotation meta]
- frontend_server_client 2.1.2 [async path]
- gallery_saver 2.3.2 [flutter path_provider http path]
- gettext_parser 0.2.0
- glob 2.0.2 [async collection file path string_scanner]
- googleapis_auth 1.3.1 [crypto http http_parser]
- graphs 2.1.0 [collection]
- html 0.15.0 [csslib source_span]
- http_multi_server 3.2.0 [async]
- http_parser 4.0.0 [charcode collection source_span string_scanner typed_data]
- i18n_extension 4.2.1 [sprintf args analyzer gettext_parser equatable intl flutter]
- image 3.1.3 [archive meta xml]
- image_picker 0.8.5+1 [flutter image_picker_android image_picker_for_web image_picker_ios image_picker_platform_interface]
- image_picker_android 0.8.4+12 [flutter flutter_plugin_android_lifecycle image_picker_platform_interface]
- image_picker_for_web 2.1.7 [flutter flutter_web_plugins image_picker_platform_interface]
- image_picker_ios 0.8.5+1 [flutter image_picker_platform_interface]
- image_picker_platform_interface 2.4.4 [cross_file flutter http plugin_platform_interface]
- io 1.0.3 [meta path string_scanner]
- js 0.6.4
- json_annotation 4.5.0 [meta]
- json_rpc_2 3.0.1 [stack_trace stream_channel]
- lint 1.8.2
- lints 2.0.0
- local_auth_android 1.0.3 [flutter flutter_plugin_android_lifecycle intl local_auth_platform_interface]
- local_auth_ios 1.0.5 [flutter intl local_auth_platform_interface]
- local_auth_platform_interface 1.0.3 [flutter intl plugin_platform_interface]
- logger 1.1.0
- logging 1.0.2
- matcher 0.12.11 [stack_trace]
- material_color_utilities 0.1.4
- meta 1.7.0
- mime 1.0.2
- nm 0.5.0 [dbus]
- octo_image 1.0.1 [flutter flutter_blurhash]
- package_config 2.0.2 [path]
- package_info_plus_linux 1.0.5 [package_info_plus_platform_interface flutter path]
- package_info_plus_macos 1.3.0 [flutter]
- package_info_plus_platform_interface 1.0.2 [flutter meta plugin_platform_interface]
- package_info_plus_web 1.0.5 [flutter flutter_web_plugins http meta package_info_plus_platform_interface]
- package_info_plus_windows 1.0.5 [package_info_plus_platform_interface ffi flutter win32]
- path_drawing 1.0.0 [vector_math meta path_parsing flutter]
- path_parsing 1.0.0 [vector_math meta]
- path_provider_android 2.0.14 [flutter path_provider_platform_interface]
- path_provider_ios 2.0.9 [flutter path_provider_platform_interface]
- path_provider_linux 2.1.6 [ffi flutter path path_provider_platform_interface xdg_directories]
- path_provider_macos 2.0.6 [flutter path_provider_platform_interface]
- path_provider_platform_interface 2.0.3 [flutter platform plugin_platform_interface]
- path_provider_windows 2.0.6 [ffi flutter path path_provider_platform_interface win32]
- pedantic 1.11.1
- petitparser 5.0.0 [meta]
- photo_view 0.13.0 [flutter]
- platform 3.1.0
- plugin_platform_interface 2.1.2 [meta]
- pointycastle 3.6.0 [collection convert js]
- pool 1.5.0 [async stack_trace]
- process 4.2.4 [file path platform]
- pub_semver 2.1.1 [collection meta]
- pubspec_parse 1.2.0 [checked_yaml collection json_annotation pub_semver yaml]
- qr 2.1.0 [meta]
- quiver 3.1.0 [matcher]
- rational 2.2.0
- rxdart 0.27.3
- screen_retriever 0.1.2 [flutter]
- share_plus_linux 3.0.0 [share_plus_platform_interface file flutter meta url_launcher]
- share_plus_macos 3.0.0 [share_plus_platform_interface flutter]
- share_plus_platform_interface 3.0.2 [flutter meta mime plugin_platform_interface]
- share_plus_web 3.0.0 [share_plus_platform_interface url_launcher flutter flutter_web_plugins meta]
- share_plus_windows 3.0.0 [share_plus_platform_interface flutter meta url_launcher]
- shelf 1.3.0 [async collection http_parser path stack_trace stream_channel]
- shelf_web_socket 1.0.1 [shelf stream_channel web_socket_channel]
- sky_engine 0.0.99
- source_gen 1.2.2 [analyzer async build dart_style glob meta path source_span yaml]
- source_helper 1.3.2 [analyzer collection source_gen]
- source_span 1.8.2 [collection path term_glyph]
- sprintf 6.0.0
- sqflite 2.0.2+1 [flutter sqflite_common path]
- sqflite_common 2.2.1+1 [synchronized path meta]
- stack_trace 1.10.0 [path]
- storagebox 0.1.0+3 [collection meta path xdg_directories]
- stream_channel 2.1.0 [async]
- stream_transform 2.0.0
- string_scanner 1.1.0 [charcode source_span]
- string_validator 0.3.0
- supercharged_dart 2.1.1
- synchronized 3.0.0+2
- term_glyph 1.2.0
- test_api 0.4.9 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher]
- timezone 0.8.0 [path]
- timing 1.0.0 [json_annotation]
- tuple 2.0.0 [quiver]
- typed_data 1.3.0 [collection]
- universal_io 2.0.4 [collection crypto meta typed_data]
- url_launcher_android 6.0.17 [flutter url_launcher_platform_interface]
- url_launcher_ios 6.0.16 [flutter url_launcher_platform_interface]
- url_launcher_linux 3.0.1 [flutter url_launcher_platform_interface]
- url_launcher_macos 3.0.1 [flutter url_launcher_platform_interface]
- url_launcher_platform_interface 2.1.0 [flutter plugin_platform_interface]
- url_launcher_web 2.0.10 [flutter flutter_web_plugins url_launcher_platform_interface]
- url_launcher_windows 3.0.1 [flutter url_launcher_platform_interface]
- vector_math 2.1.2
- video_player 2.4.1 [flutter html video_player_android video_player_avfoundation video_player_platform_interface video_player_web]
- video_player_android 2.3.3 [flutter video_player_platform_interface]
- video_player_avfoundation 2.3.4 [flutter video_player_platform_interface]
- video_player_platform_interface 5.1.2 [flutter plugin_platform_interface]
- video_player_web 2.0.9 [flutter flutter_web_plugins video_player_platform_interface]
- watcher 1.0.1 [async path]
- web_socket_channel 2.2.0 [async crypto stream_channel]
- win32 2.5.2 [ffi]
- xdg_directories 0.2.0+1 [meta path process]
- xml 5.4.1 [collection meta petitparser]
- yaml 3.1.1 [collection source_span string_scanner]
- youtube_player_flutter 8.0.0 [flutter flutter_inappwebview]

phone authentication not working

After enter mobile number, blank windows opened and throw below exception.

Unhandled Exception: [firebase_auth/verification-canceled] Recaptcha verification process was canceled by user.

πŸ› [firebase_auth_desktop] Nuget is not installed

Bug report

Describe the bug
Compiling with firebase_auth_desktop for windows fail with the following

Running "flutter pub get" in commerce...
Launching lib\main.dart on Windows in debug mode...
Building Windows application...
Nuget is not installed.
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: The command "setlocal [C:\src\commerce\build\windows\plugins\desktop_webview_auth\DEPENDENCIES_DOWNLOAD.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: ..\..\nuget.exe install Microsoft.Windows.ImplementationLibrary -Version 1.0.211019.2 -ExcludeVersion -OutputDirectory C:/src/commerce/build/windows/packages [C:\src\commerce\build\windows\plugins\desktop_webview_auth\DEPENDENCIES_DOWNLOAD.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [C:\src\commerce\build\windows\plugins\desktop_webview_auth\DEPENDENCIES_DOWNLOAD.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: ..\..\nuget.exe install Microsoft.Web.WebView2 -Version 1.0.1108.44 -ExcludeVersion -OutputDirectory C:/src/commerce/build/windows/packages [C:\src\commerce\build\windows\plugins\desktop_webview_auth\DEPENDENCIES_DOWNLOAD.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [C:\src\commerce\build\windows\plugins\desktop_webview_auth\DEPENDENCIES_DOWNLOAD.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: :cmEnd [C:\src\commerce\build\windows\plugins\desktop_webview_auth\DEPENDENCIES_DOWNLOAD.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone [C:\src\commerce\build\windows\plugins\desktop_webview_auth\DEPENDENCIES_DOWNLOAD.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: :cmErrorLevel [C:\src\commerce\build\windows\plugins\desktop_webview_auth\DEPENDENCIES_DOWNLOAD.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: exit /b %1 [C:\src\commerce\build\windows\plugins\desktop_webview_auth\DEPENDENCIES_DOWNLOAD.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: :cmDone [C:\src\commerce\build\windows\plugins\desktop_webview_auth\DEPENDENCIES_DOWNLOAD.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd [C:\src\commerce\build\windows\plugins\desktop_webview_auth\DEPENDENCIES_DOWNLOAD.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: :VCEnd" exited with code 1. [C:\src\commerce\build\windows\plugins\desktop_webview_auth\DEPENDENCIES_DOWNLOAD.vcxproj]
Exception: Build process failed.

Steps to reproduce

Steps to reproduce the behavior:

  1. Use the following versions
  2. add firebase auth desktop
  3. compile

Expected behavior

Compile without error

Sample project

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Firebase.initializeApp(
    options: DefaultFirebaseOptions.currentPlatform,
  );

  runApp(App());
}

Additional context

Can compile and run normally with firebase_core_desktop without firebase_auth_desktop and get a windows desktop version running
I tried flutter clean
Nuget is in build\windows after compile try and fail


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, 2.10.5, on Microsoft Windows [Version 10.0.19042.1586], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.1.5)
[√] Android Studio (version 2021.1)
[√] IntelliJ IDEA Ultimate Edition (version 2021.1)
[√] Connected device (3 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.16.2
Flutter SDK 2.10.5
commerce 1.0.0+1

dependencies:
- app_settings 4.1.1 [flutter]
- carousel_slider 4.0.0 [flutter]
- connectivity_plus 2.2.1 [flutter connectivity_plus_platform_interface connectivity_plus_linux connectivity_plus_macos connectivity_plus_web connectivity_plus_windows]
- cupertino_icons 1.0.4
- firebase_auth 3.3.11 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta]
- firebase_auth_desktop 0.1.1 [desktop_webview_auth firebase_auth firebase_auth_dart firebase_auth_platform_interface firebase_core firebase_core_dart flutter meta]
- firebase_core 1.15.0 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_core_desktop 0.1.1 [firebase_core_dart firebase_core_platform_interface flutter meta]
- flutter 0.0.0 [characters collection material_color_utilities meta typed_data vector_math sky_engine]
- flutter_localizations 0.0.0 [flutter intl characters clock collection material_color_utilities meta path typed_data vector_math]
- flutter_native_splash 2.1.0 [args image js meta path xml yaml universal_io flutter flutter_web_plugins]
- flutter_widget_from_html_core 0.8.5+1 [csslib flutter fwfh_text_style html]
- google_sign_in 5.2.4 [flutter google_sign_in_platform_interface google_sign_in_web]
- http 0.13.4 [async http_parser meta path]
- intl 0.17.0 [clock path]
- localstorage 4.0.0+1 [flutter path_provider]
- photo_view 0.13.0 [flutter]
- provider 6.0.2 [collection flutter nested]
- shared_preferences 2.0.13 [flutter shared_preferences_android shared_preferences_ios shared_preferences_linux shared_preferences_macos shared_preferences_platform_interface shared_pr
eferences_web shared_preferences_windows]
- transparent_image 2.0.0

dev dependencies:
- flutter_lints 1.0.4 [lints]
- flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters charcode collection matcher material_color_utilities meta source_
span stream_channel string_scanner term_glyph typed_data]
- introduction_screen 3.0.0 [flutter dots_indicator collection]

transitive dependencies:
- _discoveryapis_commons 1.0.2 [http http_parser meta]
- archive 3.2.2 [crypto path]
- args 2.3.0
- async 2.8.2 [collection meta]
- boolean_selector 2.1.0 [source_span string_scanner]
- characters 1.2.0
- charcode 1.3.1
- clock 1.1.0
- collection 1.15.0
- connectivity_plus_linux 1.3.0 [flutter connectivity_plus_platform_interface meta nm]
- connectivity_plus_macos 1.2.1 [connectivity_plus_platform_interface flutter]
- connectivity_plus_platform_interface 1.2.0 [flutter meta plugin_platform_interface]
- connectivity_plus_web 1.2.0 [connectivity_plus_platform_interface flutter_web_plugins flutter]
- connectivity_plus_windows 1.2.0 [connectivity_plus_platform_interface flutter]
- crypto 3.0.1 [collection typed_data]
- csslib 0.17.1 [source_span]
- dbus 0.7.1 [args ffi meta xml]
- desktop_webview_auth 0.0.6 [crypto flutter http]
- dots_indicator 2.1.0 [flutter]
- fake_async 1.2.0 [clock collection]
- ffi 1.1.2
- file 6.1.2 [meta path]
- firebase_auth_dart 0.1.1 [firebase_core_dart firebaseapis googleapis_auth http meta]
- firebase_auth_platform_interface 6.2.1 [firebase_core flutter meta plugin_platform_interface]
- firebase_auth_web 3.3.9 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser intl js meta]
- firebase_core_dart 0.1.1 [collection meta]
- firebase_core_platform_interface 4.2.5 [collection flutter meta plugin_platform_interface]
- firebase_core_web 1.6.2 [firebase_core_platform_interface flutter flutter_web_plugins js meta]
- firebaseapis 0.1.1 [_discoveryapis_commons http]
- flutter_web_plugins 0.0.0 [flutter js characters collection material_color_utilities meta typed_data vector_math]
- fwfh_text_style 2.7.3+1 [flutter]
- google_sign_in_platform_interface 2.1.2 [flutter quiver]
- google_sign_in_web 0.10.0+5 [flutter flutter_web_plugins google_sign_in_platform_interface js]
- googleapis_auth 1.3.0 [crypto http http_parser]
- html 0.15.0 [csslib source_span]
- http_parser 4.0.0 [charcode collection source_span string_scanner typed_data]
- image 3.1.3 [archive meta xml]
- js 0.6.3
- lints 1.0.1
- matcher 0.12.11 [stack_trace]
- material_color_utilities 0.1.3
- meta 1.7.0
- nested 1.0.0 [flutter]
- nm 0.5.0 [dbus]
- path 1.8.0
- path_provider 2.0.9 [flutter path_provider_android path_provider_ios path_provider_linux path_provider_macos path_provider_platform_interface path_provider_windows]
- path_provider_android 2.0.12 [flutter path_provider_platform_interface]
- path_provider_ios 2.0.8 [flutter path_provider_platform_interface]
- path_provider_linux 2.1.5 [ffi flutter path path_provider_platform_interface xdg_directories]
- path_provider_macos 2.0.5 [flutter path_provider_platform_interface]
- path_provider_platform_interface 2.0.3 [flutter platform plugin_platform_interface]
- path_provider_windows 2.0.5 [ffi flutter path path_provider_platform_interface win32]
- petitparser 4.4.0 [meta]
- platform 3.1.0
- plugin_platform_interface 2.1.2 [meta]
- process 4.2.4 [file path platform]
- quiver 3.0.1+1 [matcher]
- shared_preferences_android 2.0.11 [flutter shared_preferences_platform_interface]
- shared_preferences_ios 2.1.0 [flutter shared_preferences_platform_interface]
- shared_preferences_linux 2.1.0 [file flutter path path_provider_linux path_provider_platform_interface shared_preferences_platform_interface]
- shared_preferences_macos 2.0.3 [flutter shared_preferences_platform_interface]
- shared_preferences_platform_interface 2.0.0 [flutter]
- shared_preferences_web 2.0.3 [flutter flutter_web_plugins shared_preferences_platform_interface]
- shared_preferences_windows 2.1.0 [file flutter path path_provider_platform_interface path_provider_windows shared_preferences_platform_interface]
- sky_engine 0.0.99
- source_span 1.8.1 [collection path term_glyph]
- stack_trace 1.10.0 [path]
- stream_channel 2.1.0 [async]
- string_scanner 1.1.0 [charcode source_span]
- term_glyph 1.2.0
- test_api 0.4.8 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher]
- typed_data 1.3.0 [collection]
- universal_io 2.0.4 [collection crypto meta typed_data]
- vector_math 2.1.1
- win32 2.4.1 [ffi]
- xdg_directories 0.2.0+1 [meta path process]
- xml 5.3.1 [collection meta petitparser]
- yaml 3.1.0 [collection source_span string_scanner]


Couldn't sign you in popup on Google sign in

Ran the example app (Windows 10), The runs perfectly, When I try the Google Sign In option the pop asking me for the email or phone number pops up but when I enter my email and try to sign in I get a
Couldn't sign you in.. This browser or app may not be secure. Window

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.10.3, on Microsoft Windows [Version 10.0.19042.1586], locale en-IN)
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.1.1)
[√] Android Studio (version 2021.1)
[√] VS Code (version 1.63.2)
[√] Connected device (3 available)
[√] HTTP Host Availability

β€’ No issues found!

login_issue

πŸ› [firebase_auth_desktop: ^1.0.2] reCAPTCHA failed in windows

I encounter the following error when trying to use the FirebaseAuth.instance.signInWithPhoneNumber() method on a Windows platform:

[firebase_auth/captcha-check-failed] The provided reCAPTCHA response token is invalid, expired, already used, or the field associated with it does not match the fields in the whitelist.

How can I solve this?

dependency_overrides:
  firebase_core_desktop: ^1.0.2
  firebase_auth_desktop: ^1.0.2

πŸ› [firebase_auth_desktop] Build error

Bug report

Describe the bug
I tried to build a desktop app using Firebase auth. When I added firebase_core, it worked normally. When I implemented Firebase authentication and added firebase_auth_desktop and built the project, it returned with this :

/D:/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_desktop-0.1.1-dev.0/lib/firebase_auth_desktop.dart(326,16): error GE5CFE876: The method 'FirebaseAuthDesktop.verifyPhoneNumber' has fewer named arguments than those of overridden method 'FirebaseAuthPlatform.verifyPhoneNumber'. [D:\duthinh\datamanager\build\windows\flutter\flutter_assemble.vcxproj]
/D:/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_desktop-0.1.1-dev.0/lib/firebase_auth_desktop.dart(326,16): error GE5CFE876: The method 'FirebaseAuthDesktop.verifyPhoneNumber' doesn't have the named parameter 'multiFactorInfo' of overridden method 'FirebaseAuthPlatform.verifyPhoneNumber'. [D:\duthinh\datamanager\build\windows\flutter\flutter_assemble.vcxproj]
/D:/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_desktop-0.1.1-dev.0/lib/src/firebase_auth_user.dart(8,54): error G45C924B7: Too few positional arguments: 3 required, 2 given. [D:\duthinh\datamanager\build\windows\flutter\flutter_assemble.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(245,5): error MSB8066: Custom build for 'D:\duthinh\datamanager\build\windows\CMakeFiles\50d43ab205546bfeb6dff4a9339b0854\flutter_windows.dll.rule;D:\duthinh\datamanager\build\windows\CMakeFiles\bf6c431106dcca58a0cc57e4dca75cbc\flutter_assemble.rule' exited with code 1. [D:\duthinh\datamanager\build\windows\flutter\flutter_assemble.vcxproj]
Building Windows application...                                         
Exception: Build process failed.

Steps to reproduce

Steps to reproduce the behavior:

  1. Create a new flutter project
  2. Add the following dependencies
firebase_core: ^1.19.2
firebase_core_desktop: ^1.0.1
desktop_webview_auth: ^0.0.9
firebase_auth: ^3.5.0
firebase_auth_desktop: ^1.0.1

Expected behavior

Build success

Flutter doctor

Run flutter doctor and paste the output below:

Click To Expand
[√] Flutter (Channel stable, 3.0.4, on Microsoft Windows [Version 10.0.22621.436], locale en-GB)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Professional 2022 17.1.6)
[!] Android Studio (not installed)
[√] VS Code (version 1.69.2)
[√] Connected device (3 available)
[√] HTTP Host Availability

! Doctor found issues in 1 category.

Flutter dependencies

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

Click To Expand
Dart SDK 2.17.5
Flutter SDK 3.0.4
datamanager 1.0.0+1

dependencies:
- cupertino_icons 1.0.5
- desktop_webview_auth 0.0.9 [crypto flutter http]
- firebase_auth 3.5.0 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta]
- firebase_auth_desktop 1.0.1 [desktop_webview_auth firebase_auth firebase_auth_dart firebase_auth_platform_interface firebase_core firebase_core_dart flutter meta]
- firebase_core 1.20.0 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_core_desktop 1.0.1 [firebase_core_dart firebase_core_platform_interface flutter meta]
- flutter 0.0.0 [characters collection material_color_utilities meta vector_math sky_engine]
- google_fonts 3.0.1 [flutter http path_provider crypto]

dev dependencies:
- 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 charcode collection matcher material_color_utilities meta source_span stream_channel string_scanner term_glyph]

transitive dependencies:
- _discoveryapis_commons 1.0.3 [http http_parser meta]
- async 2.8.2 [collection meta]
- boolean_selector 2.1.0 [source_span string_scanner]
- characters 1.2.0
- charcode 1.3.1
- clock 1.1.0
- collection 1.16.0
- crypto 3.0.2 [typed_data]
- fake_async 1.3.0 [clock collection]
- ffi 1.2.1
- file 6.1.2 [meta path]
- firebase_auth_dart 1.0.1 [firebase_core_dart firebaseapis googleapis_auth http meta storagebox]
- firebase_auth_platform_interface 6.4.0 [collection firebase_core flutter meta plugin_platform_interface]
- firebase_auth_web 4.1.0 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser intl js meta]
- firebase_core_dart 1.0.1 [collection meta]
- firebase_core_platform_interface 4.5.0 [collection flutter flutter_test meta plugin_platform_interface]
- firebase_core_web 1.7.1 [firebase_core_platform_interface flutter flutter_web_plugins js meta]
- firebaseapis 0.1.2 [_discoveryapis_commons http]
- flutter_web_plugins 0.0.0 [flutter js characters collection material_color_utilities meta vector_math]
- googleapis_auth 1.3.1 [crypto http http_parser]
- http 0.13.4 [async http_parser meta path]
- http_parser 4.0.1 [collection source_span string_scanner typed_data]
- intl 0.17.0 [clock path]
- js 0.6.4
- lints 2.0.0
- matcher 0.12.11 [stack_trace]
- material_color_utilities 0.1.4
- meta 1.7.0
- path 1.8.1
- path_provider 2.0.11 [flutter path_provider_android path_provider_ios path_provider_linux path_provider_macos path_provider_platform_interface path_provider_windows]
- path_provider_android 2.0.16 [flutter path_provider_platform_interface]
- path_provider_ios 2.0.10 [flutter path_provider_platform_interface]
- path_provider_linux 2.1.7 [ffi flutter path path_provider_platform_interface xdg_directories]
- path_provider_macos 2.0.6 [flutter path_provider_platform_interface]
- path_provider_platform_interface 2.0.4 [flutter platform plugin_platform_interface]
- path_provider_windows 2.0.7 [ffi flutter path path_provider_platform_interface win32]
- platform 3.1.0
- plugin_platform_interface 2.1.2 [meta]
- process 4.2.4 [file path platform]
- sky_engine 0.0.99
- source_span 1.8.2 [collection path term_glyph]
- stack_trace 1.10.0 [path]
- storagebox 0.1.0+3 [collection meta path xdg_directories]
- stream_channel 2.1.0 [async]
- string_scanner 1.1.0 [charcode source_span]
- term_glyph 1.2.0
- test_api 0.4.9 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher]
- typed_data 1.3.1 [collection]
- vector_math 2.1.2
- win32 2.6.1 [ffi]
- xdg_directories 0.2.0+1 [meta path process]

πŸ› firebase_core_desktop FirebaseOptions.fromMap no longer available

Bug report

Faild to build app beacause FirebaseOptions.fromMap no longer availble in firebase_core_platform_interface, changed to 'fromPigeon'

: Error: Member not found: 'FirebaseOptions.fromMap'.
../…/lib/firebase_core_desktop.dart:23
      FirebaseOptions.fromMap(app.options.asMap),
                      ^^^^^^^

Steps to reproduce

Steps to reproduce the behavior:

  1. Create a new project and add 4 packages.
    firebase_core: ^1.14.1
    firebase_core_desktop: ^1.0.0

Expected behavior

Should build project

Flutter doctor

Run flutter doctor and paste the output below:

Click To Expand
[βœ“] Flutter (Channel stable, 3.0.4, on macOS 12.3.1 21E258 darwin-arm, locale es-419)
[βœ“] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
[βœ“] Xcode - develop for iOS and macOS (Xcode 13.4.1)
[βœ“] Chrome - develop for the web
[βœ“] Android Studio (version 2021.1)
[βœ“] VS Code (version 1.68.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.17.5
Flutter SDK 3.0.4
vendeme_client_flutter 3.0.0+1

dependencies:
- cloud_firestore 3.2.1 [cloud_firestore_platform_interface cloud_firestore_web collection firebase_core firebase_core_platform_interface flutter meta]
- cupertino_icons 1.0.4
- extended_image 6.0.2+1 [extended_image_library flutter meta]
- firebase_app_check 0.0.6+9 [firebase_app_check_platform_interface firebase_app_check_web firebase_core firebase_core_platform_interface flutter]
- firebase_auth 3.4.1 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta]
- firebase_auth_desktop 1.0.0 [desktop_webview_auth firebase_auth firebase_auth_dart firebase_auth_platform_interface firebase_core firebase_core_dart flutter meta]
- firebase_core 1.14.1 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_core_desktop 1.0.0 [firebase_core_dart firebase_core_platform_interface flutter meta]
- fl_chart 0.55.0 [flutter equatable]
- fluro 2.0.3 [flutter]
- flutter 0.0.0 [characters collection material_color_utilities meta vector_math sky_engine]
- flutter_dotenv 5.0.2 [flutter]
- flutter_i18n 0.32.2 [flutter flutter_localizations flutter_web_plugins intl yaml xml2json path toml logging http]
- flutterfire_ui 0.4.2+2 [cloud_firestore collection crypto desktop_webview_auth email_validator firebase_auth firebase_core firebase_database firebase_dynamic_links flutter flutter_facebook_auth flutter_localizations flutter_svg google_sign_in sign_in_with_apple twitter_login]
- google_fonts 3.0.0 [flutter http path_provider crypto]
- google_maps_services_dart 1.17.1 [dio built_value built_collection]
- hive 2.2.1 [meta crypto]
- hive_flutter 1.1.0 [flutter hive path_provider path]
- package_info_plus 1.4.2 [flutter package_info_plus_platform_interface package_info_plus_linux package_info_plus_macos package_info_plus_windows package_info_plus_web]
- provider 6.0.2 [collection flutter nested]
- reactive_direct_select 0.2.0 [flutter reactive_forms direct_select]
- reactive_forms 13.0.0 [flutter intl]
- typesense 0.2.0 [http crypto equatable]
- url_strategy 0.2.0 [flutter_web_plugins]

dev dependencies:
- 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 charcode collection matcher material_color_utilities meta source_span stream_channel string_scanner term_glyph]

transitive dependencies:
- _discoveryapis_commons 1.0.3 [http http_parser meta]
- async 2.8.2 [collection meta]
- boolean_selector 2.1.0 [source_span string_scanner]
- built_collection 5.1.1
- built_value 8.3.0 [built_collection collection fixnum meta]
- characters 1.2.0
- charcode 1.3.1
- clock 1.1.0
- cloud_firestore_platform_interface 5.5.10 [collection firebase_core flutter meta plugin_platform_interface]
- cloud_firestore_web 2.6.19 [cloud_firestore_platform_interface collection firebase_core firebase_core_web flutter flutter_web_plugins js]
- collection 1.16.0
- crypto 3.0.1 [collection typed_data]
- desktop_webview_auth 0.0.9 [crypto flutter http]
- dio 4.0.6 [http_parser path]
- direct_select 2.0.0 [flutter]
- email_validator 2.0.1
- equatable 2.0.3 [collection meta]
- extended_image_library 3.1.4 [crypto flutter http_client_helper path path_provider]
- fake_async 1.3.0 [clock collection]
- ffi 1.1.2
- file 6.1.2 [meta path]
- firebase_app_check_platform_interface 0.0.4+3 [firebase_core flutter meta plugin_platform_interface]
- firebase_app_check_web 0.0.5+9 [firebase_app_check_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js]
- firebase_auth_dart 1.0.0 [firebase_core_dart firebaseapis googleapis_auth http meta storagebox]
- firebase_auth_platform_interface 6.3.1 [firebase_core flutter meta plugin_platform_interface]
- firebase_auth_web 3.3.19 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser intl js meta]
- firebase_core_dart 1.0.0 [collection meta]
- firebase_core_platform_interface 4.4.3 [collection flutter flutter_test meta plugin_platform_interface]
- firebase_core_web 1.6.6 [firebase_core_platform_interface flutter flutter_web_plugins js meta]
- firebase_database 9.0.18 [firebase_core firebase_core_platform_interface firebase_database_platform_interface firebase_database_web flutter]
- firebase_database_platform_interface 0.2.1+10 [collection firebase_core flutter meta plugin_platform_interface]
- firebase_database_web 0.2.0+17 [firebase_core firebase_core_web firebase_database_platform_interface flutter flutter_web_plugins js]
- firebase_dynamic_links 4.3.1 [firebase_core firebase_core_platform_interface firebase_dynamic_links_platform_interface flutter meta plugin_platform_interface]
- firebase_dynamic_links_platform_interface 0.2.3+6 [firebase_core flutter meta plugin_platform_interface]
- firebaseapis 0.1.2 [_discoveryapis_commons http]
- fixnum 1.0.1
- flutter_facebook_auth 4.3.0 [flutter flutter_facebook_auth_platform_interface flutter_facebook_auth_web]
- flutter_facebook_auth_platform_interface 3.1.0 [flutter plugin_platform_interface]
- flutter_facebook_auth_web 3.1.0 [flutter flutter_web_plugins js flutter_facebook_auth_platform_interface]
- flutter_localizations 0.0.0 [flutter intl characters clock collection material_color_utilities meta path vector_math]
- flutter_svg 1.0.3 [flutter meta path_drawing vector_math xml]
- flutter_web_plugins 0.0.0 [flutter js characters collection material_color_utilities meta vector_math]
- google_sign_in 5.3.0 [flutter google_sign_in_android google_sign_in_ios google_sign_in_platform_interface google_sign_in_web]
- google_sign_in_android 5.2.5 [flutter google_sign_in_platform_interface]
- google_sign_in_ios 5.2.5 [flutter google_sign_in_platform_interface]
- google_sign_in_platform_interface 2.1.2 [flutter quiver]
- google_sign_in_web 0.10.1 [flutter flutter_web_plugins google_sign_in_platform_interface js]
- googleapis_auth 1.3.1 [crypto http http_parser]
- http 0.13.4 [async http_parser meta path]
- http_client_helper 2.0.2 [http]
- http_parser 4.0.0 [charcode collection source_span string_scanner typed_data]
- intl 0.17.0 [clock path]
- js 0.6.4
- lints 2.0.0
- logging 1.0.2
- matcher 0.12.11 [stack_trace]
- material_color_utilities 0.1.4
- meta 1.7.0
- nested 1.0.0 [flutter]
- package_info_plus_linux 1.0.5 [package_info_plus_platform_interface flutter path]
- package_info_plus_macos 1.3.0 [flutter]
- package_info_plus_platform_interface 1.0.2 [flutter meta plugin_platform_interface]
- package_info_plus_web 1.0.5 [flutter flutter_web_plugins http meta package_info_plus_platform_interface]
- package_info_plus_windows 1.0.5 [package_info_plus_platform_interface ffi flutter win32]
- path 1.8.1
- path_drawing 1.0.0 [vector_math meta path_parsing flutter]
- path_parsing 1.0.0 [vector_math meta]
- path_provider 2.0.9 [flutter path_provider_android path_provider_ios path_provider_linux path_provider_macos path_provider_platform_interface path_provider_windows]
- path_provider_android 2.0.12 [flutter path_provider_platform_interface]
- path_provider_ios 2.0.8 [flutter path_provider_platform_interface]
- path_provider_linux 2.1.5 [ffi flutter path path_provider_platform_interface xdg_directories]
- path_provider_macos 2.0.5 [flutter path_provider_platform_interface]
- path_provider_platform_interface 2.0.3 [flutter platform plugin_platform_interface]
- path_provider_windows 2.0.5 [ffi flutter path path_provider_platform_interface win32]
- petitparser 4.4.0 [meta]
- platform 3.1.0
- plugin_platform_interface 2.1.2 [meta]
- process 4.2.4 [file path platform]
- quiver 3.0.1+1 [matcher]
- sign_in_with_apple 3.3.0 [flutter meta sign_in_with_apple_platform_interface sign_in_with_apple_web]
- sign_in_with_apple_platform_interface 1.0.0 [flutter plugin_platform_interface meta]
- sign_in_with_apple_web 1.0.1 [flutter flutter_web_plugins sign_in_with_apple_platform_interface js]
- sky_engine 0.0.99
- source_span 1.8.2 [collection path term_glyph]
- stack_trace 1.10.0 [path]
- storagebox 0.1.0+3 [collection meta path xdg_directories]
- stream_channel 2.1.0 [async]
- string_scanner 1.1.0 [charcode source_span]
- term_glyph 1.2.0
- test_api 0.4.9 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher]
- toml 0.12.0 [meta petitparser quiver]
- twitter_login 4.2.2 [flutter crypto http]
- typed_data 1.3.0 [collection]
- vector_math 2.1.2
- win32 2.5.1 [ffi]
- xdg_directories 0.2.0+1 [meta path process]
- xml 5.3.1 [collection meta petitparser]
- xml2json 5.3.2 [xml]

Failed on Linux

Code works on web, I just added these desktop packages and first run on Linux...

Launching lib/main.dart on Linux in debug mode...
lib/main.dart:1
CMake Error at /usr/local/share/cmake-3.15/Modules/FindPkgConfig.cmake:458 (message):
A required package was not found
Call Stack (most recent call first):
/usr/local/share/cmake-3.15/Modules/FindPkgConfig.cmake:637 (_pkg_check_modules_internal)
flutter/ephemeral/.plugin_symlinks/desktop_webview_auth/linux/CMakeLists.txt:21 (pkg_check_modules)

Exception: Unable to generate build files
Exited (sigterm)

FlutterFire Desktop Roadmap 2022

Hello everyone! πŸ‘‹

We heard you're excited about the FlutterFire Desktop support!
Therefore, we're sharing a tentative roadmap for our plan in 2022 to continue developing FlutterFire on Desktop platforms. 🚧

The Desktop packages for FlutterFire are built over the REST APIs of Firebase using Dart, and it adds support by extending the original FlutterFire platform interface for Windows, Linux, and macOS. The goal is to enable smooth support without much effort needed from developers.

Our implementation for each package is split into 2 packages:

  1. The Dart package, implementing an API similar to FlutterFire without dependency on Flutter, can be used alone to build Dart apps.
  2. The Desktop package that uses the Dart package and implements all methods in the original package's platform interface.

Roadmap for FlutterFire Desktop in 2022

These plugins are stable:

  1. 🟒 Core
    Status: stable
  2. 🟒 Authentication
    Status: stable

These plugins are currently in-progress:

  1. 🟠 Cloud Functions
    Status: beta
  2. 🟑 Remote Config
    Status: in progress
  3. 🟑 Cloud Storage
    Status: in progress

These plugins are planned once all preview plugins are shipped:

  1. πŸ”΄ Installations
    Status: not started
  2. πŸ”΄ Analytics
    Status: not started

This issue will be updated regularly to reflect the current state and any future plans.


Announcements ✨

  1. Announcing stable FlutterFire Auth for Desktop
  2. Announcing FlutterFire for Desktop (Preview)

Apple auth

Apple auth already done?

If yes, can you provide a example of how implement?

πŸ› [firebase_auth_desktop] build error MSB3037

Bug report

Describe the bug
After flutter pub add firebase_core_desktop, build error.

Steps to reproduce

Steps to reproduce the behavior:

  1. Create a new flutter windows app project
  2. install C++ Desktop
  3. add dependencies
  firebase_auth: '3.4.1'
  firebase_auth_desktop: ^1.0.1
  firebase_auth_platform_intadd erface: '6.3.1'
  firebase_core: ^1.19.2
  firebase_core_desktop: ^1.0.1
  1. flutter run or flutter build will show error
Click To Expand
Launching lib\main.dart on Windows in debug mode...
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: "setlocal [C:\Project\project_name\build\windows\plugins\desktop_webview_auth\desktop_webview_auth_DEPENDENCIES_DOWNLOAD.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: ..\..\nuget.exe install Microsoft.Windows.ImplementationLibrary -Version 1.0.211019.2 -ExcludeVersion -OutputDirectory C:/Project/project_name/build/windows/packages [C:\Project\project_name\build\windows\plugins\desktop_webview_auth\desktop_webview_auth_DEPENDENCIES_DOWNLOAD.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [C:\Project\project_name\build\windows\plugins\desktop_webview_auth\desktop_webview_auth_DEPENDENCIES_DOWNLOAD.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: ..\..\nuget.exe install Microsoft.Web.WebView2 -Version 1.0.1108.44 -ExcludeVersion -OutputDirectory C:/Project/project_name/build/windows/packages [C:\Project\project_name\build\windows\plugins\desktop_webview_auth\desktop_webview_auth_DEPENDENCIES_DOWNLOAD.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [C:\Project\project_name\build\windows\plugins\desktop_webview_auth\desktop_webview_auth_DEPENDENCIES_DOWNLOAD.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: :cmEnd [C:\Project\project_name\build\windows\plugins\desktop_webview_auth\desktop_webview_auth_DEPENDENCIES_DOWNLOAD.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone [C:\Project\project_name\build\windows\plugins\desktop_webview_auth\desktop_webview_auth_DEPENDENCIES_DOWNLOAD.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: :cmErrorLevel [C:\Project\project_name\build\windows\plugins\desktop_webview_auth\desktop_webview_auth_DEPENDENCIES_DOWNLOAD.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: exit /b %1 [C:\Project\project_name\build\windows\plugins\desktop_webview_auth\desktop_webview_auth_DEPENDENCIES_DOWNLOAD.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: :cmDone [C:\Project\project_name\build\windows\plugins\desktop_webview_auth\desktop_webview_auth_DEPENDENCIES_DOWNLOAD.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd [C:\Project\project_name\build\windows\plugins\desktop_webview_auth\desktop_webview_auth_DEPENDENCIES_DOWNLOAD.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: :VCEnd" οΏ½RοΏ½OοΏ½HοΏ½οΏ½^οΏ½X 1 οΏ½οΏ½οΏ½οΏ½οΏ½C [C:\Project\project_name\build\windows\plugins\desktop_webview_auth\desktop_webview_auth_DEPENDENCIES_DOWNLOAD.vcxproj]
Exception: Build process failed.
Exited (sigterm)


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.0.5, on Microsoft Windows [η‰ˆζœ¬ 10.0.19044.1826], locale zh-TW)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc1)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.2.6)
[√] Android Studio (version 2021.1)
[!] Android Studio
    X android-studio-dir = C:\Program Files\Android\Android Studio
    X Android Studio not found at C:\Program Files\Android\Android Studio
[√] VS Code (version 1.69.2)
[√] Connected device (3 available)
[√] HTTP Host Availability


Flutter dependencies

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

Click To Expand
Dart SDK 2.17.6
Flutter SDK 3.0.5
ro_sso_login 1.0.0+1

dependencies:
- cupertino_icons 1.0.5
- firebase_auth 3.4.1 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta]
- firebase_auth_desktop 1.0.1 [desktop_webview_auth firebase_auth firebase_auth_dart firebase_auth_platform_interface firebase_core firebase_core_dart flutter meta]
- firebase_auth_platform_interface 6.3.1 [firebase_core flutter meta plugin_platform_interface]
- firebase_core 1.20.0 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_core_desktop 1.0.1 [firebase_core_dart firebase_core_platform_interface flutter meta]
- flutter 0.0.0 [characters collection material_color_utilities meta vector_math sky_engine]

dev dependencies:
- 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 charcode collection matcher material_color_utilities meta source_span stream_channel string_scanner term_glyph]

transitive dependencies:
- _discoveryapis_commons 1.0.3 [http http_parser meta]
- async 2.8.2 [collection meta]
- boolean_selector 2.1.0 [source_span string_scanner]
- characters 1.2.0
- charcode 1.3.1
- clock 1.1.0
- collection 1.16.0
- crypto 3.0.2 [typed_data]
- desktop_webview_auth 0.0.9 [crypto flutter http]
- fake_async 1.3.0 [clock collection]
- file 6.1.2 [meta path]
- firebase_auth_dart 1.0.1 [firebase_core_dart firebaseapis googleapis_auth http meta storagebox]
- firebase_auth_web 3.3.19 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser intl js meta]
- firebase_core_dart 1.0.1 [collection meta]
- firebase_core_platform_interface 4.5.0 [collection flutter flutter_test meta plugin_platform_interface]
- firebase_core_web 1.7.1 [firebase_core_platform_interface flutter flutter_web_plugins js meta]
- firebaseapis 0.1.2 [_discoveryapis_commons http]
- flutter_web_plugins 0.0.0 [flutter js characters collection material_color_utilities meta vector_math]
- googleapis_auth 1.3.1 [crypto http http_parser]
- http 0.13.4 [async http_parser meta path]
- http_parser 4.0.1 [collection source_span string_scanner typed_data]
- intl 0.17.0 [clock path]
- js 0.6.4
- lints 2.0.0
- matcher 0.12.11 [stack_trace]
- material_color_utilities 0.1.4
- meta 1.7.0
- path 1.8.1
- platform 3.1.0
- plugin_platform_interface 2.1.2 [meta]
- process 4.2.4 [file path platform]
- sky_engine 0.0.99
- source_span 1.8.2 [collection path term_glyph]
- stack_trace 1.10.0 [path]
- storagebox 0.1.0+3 [collection meta path xdg_directories]
- stream_channel 2.1.0 [async]
- string_scanner 1.1.0 [charcode source_span]
- term_glyph 1.2.0
- test_api 0.4.9 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher]
- typed_data 1.3.1 [collection]
- vector_math 2.1.2
- xdg_directories 0.2.0+1 [meta path process]

Dependency Issue while installing firebase_auth_desktop

Bug report

firebase_core: ^2.3.0
firebase_auth_desktop: ^1.0.2

Because firebase_auth_desktop 1.0.2 depends on firebase_core ^1.20.0 and no versions of firebase_auth_desktop match >1.0.2 <2.0.0, firebase_auth_desktop ^1.0.2 requires firebase_core ^1.20.0.
So, because codebridge depends on both firebase_core 2.2.0 and firebase_auth_desktop ^1.0.2, version solving failed.
pub get failed (1; So, because codebridge depends on both firebase_core 2.2.0 and firebase_auth_desktop ^1.0.2, version solving failed.)

πŸ› [firebase_auth_desktop] Dependency issues

Bug report

Describe the bug
Depedency Issues after upgrading Flutter Stable 3.10

    Because firebase_auth >=3.1.5 <3.2.0 depends on firebase_auth_web ^3.1.4 and firebase_auth >=3.1.4 <3.1.5 depends on firebase_auth_web ^3.1.3, firebase_auth >=3.1.4 <3.2.0 requires firebase_auth_web ^3.1.3.
(1) So, because firebase_auth_desktop <0.1.1-dev.1 depends on firebase_auth ^3.1.4 and firebase_auth_desktop >=0.1.1-dev.1 <0.1.1-dev.4 depends on firebase_auth ^3.2.0, firebase_auth_desktop <0.1.1-dev.4 requires firebase_auth_web ^3.1.3 or firebase_auth ^3.2.0.

πŸ› [firebase_auth_desktop] Build fails

Bug report

Can't build on windows

Launching lib\main.dart on Windows in debug mode...
lib\main.dart:1
../../programming%20tools/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_desktop-1.0.1/lib/firebase_auth_desktop.dart(351,16): error GE5CFE876: The method 'FirebaseAuthDesktop.verifyPhoneNumber' has fewer named arguments than those of overridden method 'FirebaseAuthPlatform.verifyPhoneNumber'. [C:\Users\FAVOUR\Documents\GitHub\fun_app\build\windows\flutter\flutter_assemble.vcxproj]
../../programming%20tools/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_desktop-1.0.1/lib/firebase_auth_desktop.dart(351,16): error GE5CFE876: The method 'FirebaseAuthDesktop.verifyPhoneNumber' doesn't have the named parameter 'multiFactorInfo' of overridden method 'FirebaseAuthPlatform.verifyPhoneNumber'. [C:\Users\FAVOUR\Documents\GitHub\fun_app\build\windows\flutter\flutter_assemble.vcxproj]
../../programming%20tools/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_desktop-1.0.1/lib/src/recaptcha_verifier.dart(59,36): error GE5CFE876: The method 'RecaptchaVerifierFactoryDesktop.delegateFor' has fewer named arguments than those of overridden method 'RecaptchaVerifierFactoryPlatform.delegateFor'. [C:\Users\FAVOUR\Documents\GitHub\fun_app\build\windows\flutter\flutter_assemble.vcxproj]
../../programming%20tools/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_desktop-1.0.1/lib/src/recaptcha_verifier.dart(59,36): error GE5CFE876: The method 'RecaptchaVerifierFactoryDesktop.delegateFor' doesn't have the named parameter 'auth' of overridden method 'RecaptchaVerifierFactoryPlatform.delegateFor'. [C:\Users\FAVOUR\Documents\GitHub\fun_app\build\windows\flutter\flutter_assemble.vcxproj]
../../programming%20tools/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_desktop-1.0.1/lib/src/firebase_auth_user.dart(17,54): error G45C924B7: Too few positional arguments: 3 required, 2 given. [C:\Users\FAVOUR\Documents\GitHub\fun_app\build\windows\flutter\flutter_assemble.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(245,5): error MSB8066: Custom build for 'C:\Users\FAVOUR\Documents\GitHub\fun_app\build\windows\CMakeFiles\b215aa22c227f7e610022ec329374abb\flutter_windows.dll.rule;C:\Users\FAVOUR\Documents\GitHub\fun_app\build\windows\CMakeFiles\6e58bebfe170a209c95a4ee91da1240d\flutter_assemble.rule' exited with code 1. [C:\Users\FAVOUR\Documents\GitHub\fun_app\build\windows\flutter\flutter_assemble.vcxproj]
Exception: Build process failed.
Exited (sigterm)

Steps to reproduce

  1. Create a new project
  2. Add the following dependencies
  firebase_auth: ^3.5.0
  firebase_auth_desktop: ^1.0.1
  firebase_core: ^1.20.0
  firebase_core_desktop: ^1.0.1
  1. Build on Windows

Expected behavior

Compile without error

Additional context

I suspect the issue might be from compatibility with firebase_auth_platform_interface as it was updated 20hours ago from the time of writing this issue. Although I don't know if what I'm about to suggest is possible, try bundling the latest versions of all the dependencies this package uses into it before publishing to pub. This would prevent flutter from pulling the latest versions (that might have breaking changes) from pub.

Flutter doctor

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.0.3, on Microsoft Windows [Version 10.0.19044.1645], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.2.6)
[√] Android Studio (version 2020.3)
[√] VS Code (version 1.69.2)
[√] Connected device (3 available)
[√] HTTP Host Availability

β€’ No issues found!

Flutter dependencies

Dart SDK 2.17.5
Flutter SDK 3.0.3
fun_app 1.0.0+1

dependencies:
- cupertino_icons 1.0.5
- firebase_auth 3.5.0 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta]
- firebase_auth_desktop 1.0.1 [desktop_webview_auth firebase_auth firebase_auth_dart firebase_auth_platform_interface firebase_core firebase_core_dart flutter meta]
- firebase_core 1.20.0 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_core_desktop 1.0.1 [firebase_core_dart firebase_core_platform_interface flutter meta]
- flutter 0.0.0 [characters collection material_color_utilities meta vector_math sky_engine]

dev dependencies:
- 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 charcode collection matcher material_color_utilities meta source_span stream_channel string_scanner term_glyph]

transitive dependencies:
- _discoveryapis_commons 1.0.3 [http http_parser meta]
- async 2.8.2 [collection meta]
- boolean_selector 2.1.0 [source_span string_scanner]
- characters 1.2.0
- charcode 1.3.1
- clock 1.1.0
- collection 1.16.0
- crypto 3.0.2 [typed_data]
- desktop_webview_auth 0.0.9 [crypto flutter http]
- fake_async 1.3.0 [clock collection]
- file 6.1.2 [meta path]
- firebase_auth_dart 1.0.1 [firebase_core_dart firebaseapis googleapis_auth http meta storagebox]
- firebase_auth_platform_interface 6.4.0 [collection firebase_core flutter meta plugin_platform_interface]
- firebase_auth_web 4.1.0 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser intl js meta]       
- firebase_core_dart 1.0.1 [collection meta]
- firebase_core_platform_interface 4.5.0 [collection flutter flutter_test meta plugin_platform_interface]
- firebase_core_web 1.7.1 [firebase_core_platform_interface flutter flutter_web_plugins js meta]
- firebaseapis 0.1.2 [_discoveryapis_commons http]
- flutter_web_plugins 0.0.0 [flutter js characters collection material_color_utilities meta vector_math]
- googleapis_auth 1.3.1 [crypto http http_parser]
- http 0.13.4 [async http_parser meta path]
- http_parser 4.0.1 [collection source_span string_scanner typed_data]
- intl 0.17.0 [clock path]
- js 0.6.4
- lints 2.0.0
- matcher 0.12.11 [stack_trace]
- material_color_utilities 0.1.4
- meta 1.7.0
- path 1.8.1
- platform 3.1.0
- plugin_platform_interface 2.1.2 [meta]
- process 4.2.4 [file path platform]
- sky_engine 0.0.99
- source_span 1.8.2 [collection path term_glyph]
- stack_trace 1.10.0 [path]
- storagebox 0.1.0+3 [collection meta path xdg_directories]
- stream_channel 2.1.0 [async]
- string_scanner 1.1.0 [charcode source_span]
- term_glyph 1.2.0
- test_api 0.4.9 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher]
- typed_data 1.3.1 [collection]
- vector_math 2.1.2
- xdg_directories 0.2.0+1 [meta path process]

πŸ› [firebase_core_desktop] No implementation found

Bug report

i followed this instructions on this page, https://invertase.io/blog/announcing-flutterfire-desktop-auth-stable
and
i have installed firebase_core_desktop.

dependencies in .yaml file,
cloud_firestore: ^3.5.1
firebase_auth: ^3.11.2
firebase_auth_desktop: ^1.0.2
firebase_core: ^1.9.2
firebase_core_desktop: ^1.0.2
firebase_storage: ^10.3.11

my code for initialization:
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform,
);

but after initialization , it throws on all firebase functions following error:

MissingPlugingException (No implementation found for method Firestore#... on channel plugins.flutter.io/firebase_firestore)

[Feature Request] Firebase Analytics

First of all, thank you for this great effort!

I would like to use Firebase analytics on all target platforms of my app (mobile, desktop).
Therefore I would like to ask, if there are any plans to implement analytics for desktop?

πŸ› Error when building linux application

flutter run -d Linux

Running "flutter pub get" in ...
Launching lib/main.dart on Linux in debug mode...
CMake Error at /snap/flutter/126/usr/share/cmake-3.10/Modules/FindPkgConfig.cmake:419 (message):
A required package was not found
Call Stack (most recent call first):
/snap/flutter/126/usr/share/cmake-3.10/Modules/FindPkgConfig.cmake:597 (_pkg_check_modules_internal)
flutter/ephemeral/.plugin_symlinks/desktop_webview_auth/linux/CMakeLists.txt:21 (pkg_check_modules)

Building Linux application...
Exception: Unable to generate build files

Roadmap / Progress Checklist

It would probably be easier for contributors to know what the next steps are so they can make small contributions to add features they care about.

This could be done using small issues and labeling some of them as small features or good for first time contributions.

Or a simple checklist could be made on a pinned issue for next steps like this:

Looking to contribute? These are the next steps. Create an issue and tell everyone you are working on one of these features, so we don't duplicate work.

Next steps: Small features

  • Add documentation to the flutterfire_auth_dart api

Next steps: Medium features

  • Something

Next steps: Large features

  • Design flutterfire_firestore_dart api (I'm guessing creating new apis might be reserved for invertase or canonical).

MissingPluginException - Not able to reach Firestore.

I was trying to build a windows version of my project following this guide to initialize Firebase. But when I try to get a document from Firestore, I get the following error message:

MissingPluginException (MissingPluginException(No implementation found for method DocumentReference#get on channel plugins.flutter.io/firebase_firestore))

I've tried:

  • flutter clean then flutter pub get.
  • Using DefaultFirebaseOptions.web instead of DefaultFirebaseOptions.currentPlatform.

Firebase dependencies in pubspec.yaml

  • firebase_core: "^1.9.0"

  • firebase_core_desktop: ^0.1.1-dev.0

  • firebase_auth: ^3.1.5

  • firebase_auth_desktop: ^0.1.1-dev.0

  • cloud_firestore: ^3.1.7

flutter doctor -v


[√] Flutter (Channel stable, 2.8.1, on Microsoft Windows [versão 10.0.19042.1466], locale pt-BR)
    β€’ Flutter version 2.8.1 at C:\flutter
    β€’ Upstream repository https://github.com/flutter/flutter.git
    β€’ Framework revision 77d935af4d (6 weeks ago), 2021-12-16 08:37:33 -0800
    β€’ Engine revision 890a5fca2e
    β€’ Dart version 2.15.1

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
β€’ Android SDK at C:\Users\Alan\AppData\Local\Android\sdk
β€’ Platform android-31, build-tools 30.0.3
β€’ Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
β€’ Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
β€’ All Android licenses accepted.

[√] Chrome - develop for the web
β€’ Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.8.5)
β€’ Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
β€’ Visual Studio Community 2019 version 16.8.31005.135
β€’ Windows 10 SDK version 10.0.18362.0

[√] Android Studio (version 4.2)
β€’ Android Studio at C:\Program Files\Android\Android Studio
β€’ Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
β€’ Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
β€’ Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)

[√] VS Code (version 1.63.2)
β€’ VS Code at C:\Users\Alan\AppData\Local\Programs\Microsoft VS Code
β€’ Flutter extension version 3.32.0

[√] Connected device (3 available)
β€’ Windows (desktop) β€’ windows β€’ windows-x64 β€’ Microsoft Windows [versão 10.0.19042.1466]
β€’ Chrome (web) β€’ chrome β€’ web-javascript β€’ Google Chrome 97.0.4692.99
β€’ Edge (web) β€’ edge β€’ web-javascript β€’ Microsoft Edge 97.0.1072.69

πŸ› [firebase_core_desktop] Update dependences due crashlitycs update

Due this issue [#422] (firebase/firebase-android-sdk#4223) we get this error when try to get packages

Because firebase_crashlytics >=3.0.2 depends on firebase_core ^2.1.0 and my_app_name depends on firebase_core 1.22.0, firebase_crashlytics >=3.0.2 is forbidden.
So, because my_app_name depends on firebase_crashlytics ^3.0.2, version solving failed.
pub get failed (1; So, because my_app_name depends on firebase_crashlytics ^3.0.2, version solving failed.)
exit code 1

Same on #113

[πŸ“š] Your documentation feedback title (CHANGE ME)

Please describe your documentation issue or suggested improvement in detail here and provide links to any pre-existing/relevant documentation and screenshots if necessary: As per Hacktoberfest 2022 guidelines add Contributing.MD file that consists of contributing guidelines for the project.

Throws 'options != null': is not true

On launch, app throws the following error:
Unhandled Exception: 'package:firebase_core_desktop/firebase_core_desktop.dart': Failed assertion: line 35 pos 12: 'options != null': is not true.

Which I think is called due to FirebaseApp initialization in main(), the app is set up for web as well as macOS.
FirebaseConfigs for the different projects are intialized later.
image

πŸ› [firebase_auth_desktop] Update dependences due crashlitycs update

Due this issue [#422] (firebase/firebase-android-sdk#4223) we get this error when try to get packages

Because firebase_crashlytics >=3.0.2 depends on firebase_core ^2.1.0 and my_app_name depends on firebase_core 1.22.0, firebase_crashlytics >=3.0.2 is forbidden.
So, because my_app_name depends on firebase_crashlytics ^3.0.2, version solving failed.
pub get failed (1; So, because my_app_name depends on firebase_crashlytics ^3.0.2, version solving failed.)
exit code 1

Same on #112

What is the progress on this?

Do we have progress on this? how to install it? do we have a package available already? would be nice a step by step that shows how to add it to the flutter project.

πŸ› [firebase_auth_desktop] Firebase authentication not working !!

Bug report

SignIn Request With Flutter
It is working in the mobile build but when I switch to the desktop build it shows:
flutter : UnimplementedError

Authentication (SignIn Function)

Future<User?> signInWithEmailPassword(String email, String password) async {
  User? user;
  print('running');

  try {
    UserCredential userCredential = await _auth.signInWithEmailAndPassword(
      email: email,
      password: password,
    );
    print('user');
    user = userCredential.user;


    if (user != null) {
      uid = user.uid;
      userEmail = user.email;

      SharedPreferences prefs = await SharedPreferences.getInstance();
      await prefs.setBool('auth', true);
    }
  }

Widget (SignIn Function Call)

...
TextButton(
    style: TextButton.styleFrom(
    primary: Color.fromARGB(255, 13, 13, 14),
    backgroundColor: const Color(0xff04292a),
    shape: RoundedRectangleBorder(
        borderRadius: BorderRadius.circular(15.0),
    ),
    ),
    onPressed: () async {
    setState(() {
        _isLoggingIn = true;
        textFocusNodeEmail.unfocus();
        textFocusNodePass.unfocus();
    });
    if (_validateEmail(textControllerEmail.text) ==
            null &&
        _validatePass(textControllerPass.text) ==
            null) {
        await signInWithEmailPassword(
                textControllerEmail.text,
                textControllerPass.text)
            .then((result) {
        if (result != null) {
            print(result);
            setState(() {
            loginStatus =
                'You have successfully logged in';
            loginStringColor = Colors.green;
            });
            Future.delayed(
                const Duration(milliseconds: 500),
                () {
            Navigator.of(context).pop();
            Navigator.of(context)
                .pushReplacement(MaterialPageRoute(
                fullscreenDialog: true,
                builder: (context) =>
                    const HomePage(),
            ));
            });
        }
        }).catchError((error) {
        print('Login Error: $error');
        setState(() {
            loginStatus =
                'Error occured while logging in';
            loginStringColor = Colors.red;
        });
        });
    } else {
        setState(() {
        loginStatus =
            'Please enter email & password';
        loginStringColor = Colors.red;
        });
    }
    setState(() {
        _isLoggingIn = false;
        textControllerEmail.text = '';
        textControllerPass.text = '';
        _isEditingEmail = false;
        _isEditingPass = false;
    });
    },
    child: Padding(
    padding: const EdgeInsets.only(
        top: 15.0,
        bottom: 15.0,
    ),
    child: _isLoggingIn
        ? SizedBox(
            height: 16,
            width: 16,
            child: CircularProgressIndicator(
                strokeWidth: 2,
                valueColor:
                    new AlwaysStoppedAnimation<Color>(
                Colors.blue,
                ),
            ),
            )
        : const Text(
            'Log in',
            style: const TextStyle(
                fontSize: 14,
                color: Colors.white,
            ),
            ),
    ),
),
...

Project Description

Products sourcing tool (Need to implement login at both mobile and desktop builds)

Link to Github Repo : https://github.com/sbis04/explore


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, 2.10.4, on Microsoft Windows [Version 10.0.19043.1645], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Build Tools 2019 16.11.13)
[√] Android Studio (version 2020.3)
[√] Android Studio (version 4.2)
[√] VS Code (version 1.67.1)
[√] Connected device (3 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.16.2
Flutter SDK 2.10.4
argon 1.0.0+1

dependencies:
- cupertino_icons 1.0.4
- firebase_auth 3.3.17 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta]
- firebase_auth_desktop 0.2.0 [desktop_webview_auth firebase_auth firebase_auth_dart firebase_auth_platform_interface firebase_core firebase_core_dart flutter meta
]
- firebase_core 1.16.0 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_core_desktop 0.2.0 [firebase_core_dart firebase_core_platform_interface flutter meta]
- firedart 0.9.0+1 [http grpc protobuf fixnum]
- flutter 0.0.0 [characters collection material_color_utilities meta typed_data vector_math sky_engine]
- flutter_rating_bar 4.0.0 [flutter]
- google_sign_in 5.3.0 [flutter google_sign_in_android google_sign_in_ios google_sign_in_platform_interface google_sign_in_web]
- http 0.13.4 [async http_parser meta path]
- provider 6.0.2 [collection flutter nested]
- shared_preferences 2.0.13 [flutter shared_preferences_android shared_preferences_ios shared_preferences_linux shared_preferences_macos shared_preferences_platfor
m_interface shared_preferences_web shared_preferences_windows]
- url_launcher 6.1.0 [flutter url_launcher_android url_launcher_ios url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_laun
cher_windows]

dev dependencies:
- flutter_lints 1.0.4 [lints]
- flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters charcode collection matcher material_color_u
tilities meta source_span stream_channel string_scanner term_glyph typed_data]

transitive dependencies:
- _discoveryapis_commons 1.0.2 [http http_parser meta]
- archive 3.3.0 [crypto path]
- async 2.8.2 [collection meta]
- boolean_selector 2.1.0 [source_span string_scanner]
- characters 1.2.0
- charcode 1.3.1
- clock 1.1.0
- collection 1.15.0
- crypto 3.0.2 [typed_data]
- desktop_webview_auth 0.0.9 [crypto flutter http]
- fake_async 1.2.0 [clock collection]
- ffi 1.1.2
- file 6.1.2 [meta path]
- firebase_auth_dart 0.1.3 [firebase_core_dart firebaseapis googleapis_auth http meta storagebox]
- firebase_auth_platform_interface 6.2.5 [firebase_core flutter meta plugin_platform_interface]
- firebase_auth_web 3.3.14 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser intl js meta]
- firebase_core_dart 0.1.1 [collection meta]
- firebase_core_platform_interface 4.3.0 [collection flutter meta plugin_platform_interface]
- firebase_core_web 1.6.3 [firebase_core_platform_interface flutter flutter_web_plugins js meta]
- firebaseapis 0.1.2 [_discoveryapis_commons http]
- fixnum 1.0.0
- flutter_web_plugins 0.0.0 [flutter js characters collection material_color_utilities meta typed_data vector_math]
- google_sign_in_android 5.2.6 [flutter google_sign_in_platform_interface]
- google_sign_in_ios 5.2.6 [flutter google_sign_in_platform_interface]
- google_sign_in_platform_interface 2.1.2 [flutter quiver]
- google_sign_in_web 0.10.1 [flutter flutter_web_plugins google_sign_in_platform_interface js]
- googleapis_auth 1.3.1 [crypto http http_parser]
- grpc 3.0.2 [archive async crypto fixnum googleapis_auth meta http http2 protobuf]
- http2 2.0.0
- http_parser 4.0.0 [charcode collection source_span string_scanner typed_data]
- intl 0.17.0 [clock path]
- js 0.6.3
- lints 1.0.1
- matcher 0.12.11 [stack_trace]
- material_color_utilities 0.1.3
- meta 1.7.0
- nested 1.0.0 [flutter]
- path 1.8.0
- path_provider_linux 2.1.5 [ffi flutter path path_provider_platform_interface xdg_directories]
- path_provider_platform_interface 2.0.3 [flutter platform plugin_platform_interface]
- path_provider_windows 2.0.5 [ffi flutter path path_provider_platform_interface win32]
- platform 3.1.0
- plugin_platform_interface 2.1.2 [meta]
- process 4.2.4 [file path platform]
- protobuf 2.0.1 [fixnum collection]
- quiver 3.1.0 [matcher]
- shared_preferences_android 2.0.11 [flutter shared_preferences_platform_interface]
- shared_preferences_ios 2.1.0 [flutter shared_preferences_platform_interface]
- shared_preferences_linux 2.1.0 [file flutter path path_provider_linux path_provider_platform_interface shared_preferences_platform_interface]
- shared_preferences_macos 2.0.3 [flutter shared_preferences_platform_interface]
- shared_preferences_platform_interface 2.0.0 [flutter]
- shared_preferences_web 2.0.3 [flutter flutter_web_plugins shared_preferences_platform_interface]
- shared_preferences_windows 2.1.0 [file flutter path path_provider_platform_interface path_provider_windows shared_preferences_platform_interface]
- sky_engine 0.0.99
- source_span 1.8.1 [collection path term_glyph]
- stack_trace 1.10.0 [path]
- storagebox 0.1.0+3 [collection meta path xdg_directories]
- stream_channel 2.1.0 [async]
- string_scanner 1.1.0 [charcode source_span]
- term_glyph 1.2.0
- test_api 0.4.8 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher]
- typed_data 1.3.0 [collection]
- url_launcher_android 6.0.16 [flutter url_launcher_platform_interface]
- url_launcher_ios 6.0.15 [flutter url_launcher_platform_interface]
- url_launcher_linux 3.0.0 [flutter url_launcher_platform_interface]
- url_launcher_macos 3.0.0 [flutter url_launcher_platform_interface]
- url_launcher_platform_interface 2.0.5 [flutter plugin_platform_interface]
- url_launcher_web 2.0.9 [flutter flutter_web_plugins url_launcher_platform_interface]
- url_launcher_windows 3.0.0 [flutter url_launcher_platform_interface]
- vector_math 2.1.1
- win32 2.5.2 [ffi]
- xdg_directories 0.2.0+1 [meta path process]

firebase_auth/captcha-check-failed

signInWithPhoneNumber method works fine for web platform.
signInWithPhoneNumber method for desktop (macos, windows) only works with test phone number and verification code.
test phone number
But it does not work with any real phone numbers. This error shows up when any real phone number is provided.

[firebase_auth/captcha-check-failed] The reCAPTCHA response token was invalid, expired, or is called from a non-whitelisted domain.

How can I solve this issue?

Handle Multiple Accounts selection

Hi,

I clone your firebaseauth_desktop example, and run this on windows desktop platform.

This works fine, but i have two accounts on my chrome, and when i try to login second time using another gmail account, this code not show option to select account. So, to change logged account, i need do logout my on Chrome. This is annoying.

So, this issue is to correctly handle to login > logout > login again to another account flow.

Regards

πŸ› [FIREBASE_CORE_DESKTOP] Not compatible with firebase messaging

Bug report

firebase_core_desktop not compatible with the firebase_messaging.

Steps to reproduce

  1. Add the below to the pubspec.yaml:
    firebase_core_desktop: ^1.0.2
    firebase_messaging: ^14.7.1

Expected behavior

when running flutter pub get there shouldn't be any errors and both should added successfully.

Actual behavior

Resolving dependencies...
Because no versions of firebase_messaging match >14.7.1 <15.0.0 and firebase_messaging 14.7.1 depends on firebase_core_platform_interface ^5.0.0, firebase_messaging ^14.7.1 requires firebase_core_platform_interface ^5.0.0.
And because firebase_core_desktop >=1.0.2 depends on firebase_core_platform_interface ^4.5.0, firebase_messaging ^14.7.1 is incompatible with firebase_core_desktop >=1.0.2.
So, because copper_u_c depends on both firebase_core_desktop ^1.0.2 and firebase_messaging ^14.7.1, version solving failed.
exit code 1

What to do

Need to update the firebase_core_platform_interface package in firebase_core_desktop's pubspec.yaml to the latest version.

πŸ› [firebase_auth] type 'DateTime' is not a subtype of type 'int' when trying to read IdTokenResult.expirationTime

Bug report

Describe the bug
The below error gets thrown when trying to read the IdTokenResult expiration time. I believe that this is due to this line, where you should provide a unix timestamp in the form of an int instead of a DateTime object. This occurs on flutter linux and flutter windows

Steps to reproduce

Steps to reproduce the behavior:

  1. Use the sample code below

Expected behavior

Expected to get the actual token expiration time.

Sample code

final user = await _fbAuth.signInWithEmailAndPassword(email: email, password: password);
IdTokenResult tokenResult = await user.getIdTokenResult();
print(tokenResult.expirationTime); // Error

Additional context

Stack trace:

type 'DateTime' is not a subtype of type 'int'
  File "id_token_result.dart", line 38, col 50, in IdTokenResult.expirationTime

Package versions:

  firebase_core: ^1.20.1
  firebase_auth: ^3.6.3
  firebase_messaging: ^12.0.2
  firebase_core_desktop: ^1.0.2
  firebase_auth_desktop: ^1.0.2

My current workaround for this is to parse the JWT myself from IdTokenResult.token and read the exp field.


πŸ› [firebase_auth_desktop] Unable to run `pod install` for macOS example

Bug report

Describe the bug
I'm not able to run pod install for macOS:

[!] Failed to load 'firebase_auth' podspec: 
[!] Invalid `firebase_auth.podspec` file: [!] The FlutterFire plugin firebase_auth for macOS requires a macOS deployment target of 10.12 or later..

 #  from /Users/nils/Desktop/Projects/flutterfire_desktop/packages/firebase_auth/firebase_auth_desktop/example/macos/Flutter/ephemeral/.symlinks/plugins/firebase_auth/macos/firebase_auth.podspec:28
 #  -------------------------------------------
 #      ]
 >      raise Pod::Informative, error_message
 #    end
 #  -------------------------------------------


[!] The FlutterFire plugin firebase_auth for macOS requires a macOS deployment target of 10.12 or later.
    - Update the `platform :osx, '10.11'` line in your macOS/Podfile to version `10.12` and ensure you commit this file.
    - Open your `macos/Runner.xcodeproj` Xcode project and under the 'Runner' target General tab set your Deployment Target to 10.12 or
    later.

Steps to reproduce

Steps to reproduce the behavior:

  1. Clone this repo
  2. Run cd packages/firebase_auth/firebase_auth_desktop/example/
  3. Run flutter run -d macos

Expected behavior

I can run pod install

Sample project

https://github.com/invertase/flutterfire_desktop/tree/main/packages/firebase_auth/firebase_auth_desktop/example


Flutter doctor

Run flutter doctor and paste the output below:

Click To Expand
Flutter 3.0.5 β€’ channel stable β€’ https://github.com/flutter/flutter.git
Framework β€’ revision f1875d570e (2 weeks ago) β€’ 2022-07-13 11:24:16 -0700
Engine β€’ revision e85ea0e79c
Tools β€’ Dart 2.17.6 β€’ DevTools 2.12.2

firebase_auth_desktop throws UnimplementedError on tenantId

Bug report

Describe the bug

Firebase's User.toString() method looks like this:

  @override
  String toString() {
    return '$User('
        'displayName: $displayName, '
        'email: $email, '
        'emailVerified: $emailVerified, '
        'isAnonymous: $isAnonymous, '
        'metadata: $metadata, '
        'phoneNumber: $phoneNumber, '
        'photoURL: $photoURL, '
        'providerData, $providerData, '
        'refreshToken: $refreshToken, '
        'tenantId: $tenantId, '   // <<<<< Note!
        'uid: $uid)';
  }

This calls tenantId from the user in firebase_auth_desktop, which forwards to the user from firebase_auth_dart where tenantId is unimplemented:

  /// The current user's tenant ID.
  ///
  /// This is a read-only property, which indicates the tenant ID used to sign in
  /// the current user.
  /// This is null if the user is signed in from the parent project.
  String? get tenantId => throw UnimplementedError();

Steps to reproduce

Steps to reproduce the behavior:

  1. Call User.toString() on a Firebase User

Expected behavior

The toString() method should work and tenantId should appear.

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, 2.10.5, on Fedora Linux 37 (Workstation Edition) 6.0.16-300.fc37.x86_64, locale en_GB.UTF-8)
[βœ“] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[βœ“] Linux toolchain - develop for Linux desktop
[!] Android Studio (not installed)
[βœ“] VS Code (version 1.74.2)
[βœ“] Connected device (1 available)
[βœ“] HTTP Host Availability

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.