firebase / flutterfire

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

🐛 [firebase_auth][google_sign_in] Firebase authentication failure in web #5290

Closed shivam-modi closed 3 years ago

shivam-modi commented 3 years ago

Steps to Reproduce

flutter upgrade flutter run -d chrome

I have recently upgraded flutter, after upgrading firebase auth & google_sign_in stopped working on web version. It is working completely fine on android. Before upgrading, authentication is working fine in both web (on beta channel) and android( stable channel)

Login function snipet await auth.FirebaseAuth.instance .signInWithEmailAndPassword(email: email.trim(), password: password) .then((value) { setState(() { _user = value; }); });

Create account function snipet await auth.FirebaseAuth.instance .createUserWithEmailAndPassword( email: email.trim(), password: password) .then((value) { setState(() { _user = value; }); });

Google Sign In snippet `Future _handleSignIn( GoogleSignInAccount googleuser) async { auth.FirebaseUser _user;

setState(() {
  showSpiner = true;
});
final GoogleSignInAuthentication googleAuth =
    await googleuser.authentication;
await auth.FirebaseAuth.instance
    .signInWithGoogle(
  accessToken: googleAuth.accessToken,
  idToken: googleAuth.idToken,
)
    .then((value) {
  _user = value;
});
return _user;

}`

After login/ sign up there should be a successful redirection to the home page but error occurs MissingPluginException(No implementation found for method signInWithEmailAndPassword on channel plugins.flutter.io/firebase_auth) MissingPluginException(No implementation found for method createUserWithEmailAndPassword on channel plugins.flutter.io/firebase_auth) Google sign in error https://imgur.com/9wQYkgk.png

Logs After running flutter run --verbose ```[ +145 ms] executing: [/home/shivam/development/appDev/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ +71 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H [ ] c5a4b4029c0798f37c4a39b479d7cb75daa7b05c [ +1 ms] executing: [/home/shivam/development/appDev/flutter/] git tag --points-at c5a4b4029c0798f37c4a39b479d7cb75daa7b05c [ +20 ms] Exit code 0 from: git tag --points-at c5a4b4029c0798f37c4a39b479d7cb75daa7b05c [ ] 2.0.1 [ +74 ms] executing: [/home/shivam/development/appDev/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +8 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/stable [ ] executing: [/home/shivam/development/appDev/flutter/] git ls-remote --get-url origin [ +6 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ +67 ms] executing: [/home/shivam/development/appDev/flutter/] git rev-parse --abbrev-ref HEAD [ +9 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] stable [ +112 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ +4 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +91 ms] executing: /home/shivam/Android/Sdk/platform-tools/adb devices -l [ +42 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +137 ms] executing: /home/shivam/Android/Sdk/platform-tools/adb devices -l [ +22 ms] Skipping pub get: version match. [ +75 ms] Found plugin clipboard_manager at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/clipboard_manager-0.0.4/ [ +11 ms] Found plugin cloud_firestore at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.14.4/ [ +9 ms] Found plugin cloud_firestore_web at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-0.2.1+2/ [ +16 ms] Found plugin emoji_picker at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/emoji_picker-0.1.0/ [ +17 ms] Found plugin firebase_auth at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.6.2+1/ [ +4 ms] Found plugin firebase_core at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.5.3/ [ +6 ms] Found plugin firebase_core_web at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-0.2.1+1/ [ +3 ms] Found plugin firebase_dynamic_links at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_dynamic_links-0.6.3/ [ +3 ms] Found plugin firebase_messaging at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ [ +3 ms] Found plugin firebase_storage at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage-5.2.0/ [ +5 ms] Found plugin firebase_storage_web at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage_web-0.1.1+1/ [ +8 ms] Found plugin flutter_chat_bubble at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_chat_bubble-1.0.2/ [ +5 ms] Found plugin flutter_plugin_android_lifecycle at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-1.0.11/ [ +9 ms] Found plugin geolocator at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator-6.2.1/ [ +4 ms] Found plugin geolocator_web at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator_web-1.0.1/ [ +5 ms] Found plugin google_sign_in at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in-4.5.9/ [ +4 ms] Found plugin google_sign_in_web at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in_web-0.9.2/ [ +7 ms] Found plugin image_cropper at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/image_cropper-1.4.0/ [ +4 ms] Found plugin image_picker at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.6.7+22/ [ +33 ms] Found plugin path_provider at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.27/ [ +1 ms] Found plugin path_provider_linux at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+2/ [ +1 ms] Found plugin path_provider_macos at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4+8/ [ +2 ms] Found plugin path_provider_windows at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-0.0.5/ [ +17 ms] Found plugin rate_my_app at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/rate_my_app-0.7.2/ [ +6 ms] Found plugin share at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/share-2.0.0/ [ +1 ms] Found plugin shared_preferences at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.12+4/ [ +1 ms] Found plugin shared_preferences_linux at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_linux-0.0.2+4/ [ +1 ms] Found plugin shared_preferences_macos at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-0.0.1+11/ [ +4 ms] Found plugin shared_preferences_web at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-0.1.2+7/ [ +1 ms] Found plugin shared_preferences_windows at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_windows-0.0.2+3/ [ +6 ms] Found plugin sqflite at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.0+2/ [ +12 ms] Found plugin url_launcher at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.7.10/ [ +1 ms] Found plugin url_launcher_linux at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-0.0.1+4/ [ +2 ms] Found plugin url_launcher_macos at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-0.0.1+9/ [ +2 ms] Found plugin url_launcher_web at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-0.1.5+3/ [ +1 ms] Found plugin url_launcher_windows at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-0.0.1+3/ [ +191 ms] Found plugin clipboard_manager at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/clipboard_manager-0.0.4/ [ +2 ms] Found plugin cloud_firestore at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.14.4/ [ +2 ms] Found plugin cloud_firestore_web at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-0.2.1+2/ [ +6 ms] Found plugin emoji_picker at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/emoji_picker-0.1.0/ [ +8 ms] Found plugin firebase_auth at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.6.2+1/ [ +2 ms] Found plugin firebase_core at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.5.3/ [ +3 ms] Found plugin firebase_core_web at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-0.2.1+1/ [ +2 ms] Found plugin firebase_dynamic_links at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_dynamic_links-0.6.3/ [ +1 ms] Found plugin firebase_messaging at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ [ +3 ms] Found plugin firebase_storage at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage-5.2.0/ [ +3 ms] Found plugin firebase_storage_web at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage_web-0.1.1+1/ [ +6 ms] Found plugin flutter_chat_bubble at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_chat_bubble-1.0.2/ [ +4 ms] Found plugin flutter_plugin_android_lifecycle at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-1.0.11/ [ +4 ms] Found plugin geolocator at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator-6.2.1/ [ +2 ms] Found plugin geolocator_web at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator_web-1.0.1/ [ +2 ms] Found plugin google_sign_in at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in-4.5.9/ [ +2 ms] Found plugin google_sign_in_web at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in_web-0.9.2/ [ +3 ms] Found plugin image_cropper at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/image_cropper-1.4.0/ [ +1 ms] Found plugin image_picker at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.6.7+22/ [ +20 ms] Found plugin path_provider at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.27/ [ +1 ms] Found plugin path_provider_linux at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+2/ [ +1 ms] Found plugin path_provider_macos at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4+8/ [ +1 ms] Found plugin path_provider_windows at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-0.0.5/ [ +8 ms] Found plugin rate_my_app at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/rate_my_app-0.7.2/ [ +8 ms] Found plugin share at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/share-2.0.0/ [ +1 ms] Found plugin shared_preferences at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.12+4/ [ +1 ms] Found plugin shared_preferences_linux at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_linux-0.0.2+4/ [ +1 ms] Found plugin shared_preferences_macos at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-0.0.1+11/ [ +2 ms] Found plugin shared_preferences_web at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-0.1.2+7/ [ +1 ms] Found plugin shared_preferences_windows at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_windows-0.0.2+3/ [ +4 ms] Found plugin sqflite at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.0+2/ [ +8 ms] Found plugin url_launcher at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.7.10/ [ +1 ms] Found plugin url_launcher_linux at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-0.0.1+4/ [ +1 ms] Found plugin url_launcher_macos at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-0.0.1+9/ [ +1 ms] Found plugin url_launcher_web at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-0.1.5+3/ [ +1 ms] Found plugin url_launcher_windows at /home/shivam/development/appDev/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-0.0.1+3/ [ +30 ms] Generating /home/shivam/github/temp/Insta-quora-project/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java [ +201 ms] List of devices attached [ +5 ms] List of devices attached [ +138 ms] Launching lib/main.dart on Chrome in debug mode... [ +610 ms] "flutter run" took 1,964ms. [ +9 ms] Failed to bind web development server: SocketException: Failed to create server socket (OS Error: Address already in use, errno = 98), address = localhost, port = 2727 [ +3 ms] #0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3) #1 WebAssetServer.start (package:flutter_tools/src/isolated/devfs_web.dart:196:7) #2 WebDevFS.create (package:flutter_tools/src/isolated/devfs_web.dart:692:22) #3 _ResidentWebRunner.run. (package:flutter_tools/src/isolated/resident_web_runner.dart:500:25) #4 asyncGuard. (package:flutter_tools/src/base/async_guard.dart:111:24) [ +94 ms] ensureAnalyticsSent: 91ms [ +1 ms] Running shutdown hooks [ ] Shutdown hook priority 4 [ +1 ms] Shutdown hooks complete [ ] exiting with code 1 ``` **flutter analyze output** ``` info • 'List' is deprecated and shouldn't be used. Use a list literal, [], or the List.filled constructor instead • lib/Channels/chat_screen.dart:74:20 • deprecated_member_use info • 'List' is deprecated and shouldn't be used. Use a list literal, [], or the List.filled constructor instead • lib/Channels/chat_screen.dart:297:19 • deprecated_member_use info • The value of the field 'last' isn't used • lib/Channels/chat_screen.dart:947:17 • unused_field info • The value of the field 'tStamp' isn't used • lib/Channels/chat_screen.dart:949:20 • unused_field info • 'List' is deprecated and shouldn't be used. Use a list literal, [], or the List.filled constructor instead • lib/Channels/groupSettings.dart:46:26 • deprecated_member_use info • 'pickImage' is deprecated and shouldn't be used. Use imagePicker.getImage() method instead. • lib/Channels/groupSettings.dart:65:23 • deprecated_member_use info • 'FlatButton' is deprecated and shouldn't be used. Use TextButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). This feature was deprecated after v1.25.0-8.1.pre. • lib/Channels/groupSettings.dart:350:15 • deprecated_member_use info • The declaration 'updateUserAfterAllowed' isn't referenced • lib/Channels/groups.dart:83:5 • unused_element info • 'List' is deprecated and shouldn't be used. Use a list literal, [], or the List.filled constructor instead • lib/Channels/joinGroupPage.dart:97:32 • deprecated_member_use info • 'List' is deprecated and shouldn't be used. Use a list literal, [], or the List.filled constructor instead • lib/Channels/joinGroupPage.dart:98:32 • deprecated_member_use info • 'List' is deprecated and shouldn't be used. Use a list literal, [], or the List.filled constructor instead • lib/Channels/new_group_create.dart:28:18 • deprecated_member_use info • 'pickImage' is deprecated and shouldn't be used. Use imagePicker.getImage() method instead. • lib/Channels/new_group_create.dart:40:23 • deprecated_member_use info • 'FlatButton' is deprecated and shouldn't be used. Use TextButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). This feature was deprecated after v1.25.0-8.1.pre. • lib/Channels/new_group_create.dart:358:15 • deprecated_member_use info • Unused import: 'package:font_awesome_flutter/font_awesome_flutter.dart' • lib/Notifications/Notification_Provider.dart:2:8 • unused_import info • The value of the local variable 'isNotPostOwner' isn't used • lib/Pages_insta/CommentsPage.dart:135:12 • unused_local_variable warning • The parameter 'context' is required • lib/Pages_insta/CommentsPage.dart:245:26 • missing_required_param info • Avoid using unnecessary statements • lib/Pages_insta/CommentsPage.dart:361:64 • unnecessary_statements info • The value of the field '_auth' isn't used • lib/Pages_insta/EditProfilePage.dart:33:27 • unused_field info • 'pickImage' is deprecated and shouldn't be used. Use imagePicker.getImage() method instead. • lib/Pages_insta/EditProfilePage.dart:64:23 • deprecated_member_use info • 'showSnackBar' is deprecated and shouldn't be used. Use ScaffoldMessenger.showSnackBar. This feature was deprecated after v1.23.0-14.0.pre. • lib/Pages_insta/EditProfilePage.dart:148:39 • deprecated_member_use info • 'showSnackBar' is deprecated and shouldn't be used. Use ScaffoldMessenger.showSnackBar. This feature was deprecated after v1.23.0-14.0.pre. • lib/Pages_insta/EditProfilePage.dart:228:28 • deprecated_member_use info • 'FlatButton' is deprecated and shouldn't be used. Use TextButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). This feature was deprecated after v1.25.0-8.1.pre. • lib/Pages_insta/EditProfilePage.dart:548:19 • deprecated_member_use info • 'List' is deprecated and shouldn't be used. Use a list literal, [], or the List.filled constructor instead • lib/Pages_insta/Likers.dart:41:35 • deprecated_member_use info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: NotificationsItem.callback • lib/Pages_insta/NotificationsPage.dart:219:7 • must_be_immutable info • 'List' is deprecated and shouldn't be used. Use a list literal, [], or the List.filled constructor instead • lib/Pages_insta/NotificationsPage.dart:292:20 • deprecated_member_use info • The value of the field '_firebaseMessaging' isn't used • lib/Pages_insta/NotificationsPage.dart:296:21 • unused_field info • The value of the field '_radioValue' isn't used • lib/Pages_insta/Settings.dart:51:10 • unused_field info • The value of the local variable '_themeChaneger' isn't used • lib/Pages_insta/Settings.dart:167:18 • unused_local_variable info • 'pickImage' is deprecated and shouldn't be used. Use imagePicker.getImage() method instead. • lib/Pages_insta/UploadPage.dart:44:40 • deprecated_member_use info • 'pickImage' is deprecated and shouldn't be used. Use imagePicker.getImage() method instead. • lib/Pages_insta/UploadPage.dart:53:40 • deprecated_member_use info • The value of the local variable 'snackBar' isn't used • lib/Pages_insta/UploadPage.dart:231:14 • unused_local_variable info • 'FlatButton' is deprecated and shouldn't be used. Use TextButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). This feature was deprecated after v1.25.0-8.1.pre. • lib/Pages_insta/UploadPage.dart:354:17 • deprecated_member_use info • 'maxLengthEnforced' is deprecated and shouldn't be used. Use maxLengthEnforcement parameter which provides more specific behavior related to the maxLength limit. This feature was deprecated after v1.25.0-5.0.pre. • lib/Pages_insta/UploadPage.dart:401:17 • deprecated_member_use info • The value of the local variable 'i' isn't used • lib/followers and Following/Followers.dart:48:15 • unused_local_variable info • Unused import: 'package:Nobl/screens/RootPage/root_page.dart' • lib/main.dart:5:8 • unused_import info • 'List' is deprecated and shouldn't be used. Use a list literal, [], or the List.filled constructor instead • lib/properties/searchMembers.dart:14:25 • deprecated_member_use info • The value of the field '_cardKey' isn't used • lib/questionAnswerPages/AnswerGrid.dart:143:19 • unused_field info • The declaration '_loadDocument' isn't referenced • lib/questionAnswerPages/AnswerGrid.dart:231:25 • unused_element info • This function has a return type of 'FutureOr', but doesn't end with a return statement • lib/questionAnswerPages/AnswerGrid.dart:366:18 • missing_return info • 'pickImage' is deprecated and shouldn't be used. Use imagePicker.getImage() method instead. • lib/questionAnswerPages/AnswerGrid.dart:367:36 • deprecated_member_use info • Avoid using braces in interpolation when not needed • lib/questionAnswerPages/AnswerGrid.dart:413:25 • unnecessary_brace_in_string_interps info • The declaration '_loadDocument' isn't referenced • lib/questionAnswerPages/Edit_Answer.dart:501:25 • unused_element info • The declaration '_buildButton' isn't referenced • lib/questionAnswerPages/Edit_Answer.dart:687:8 • unused_element info • 'pickImage' is deprecated and shouldn't be used. Use imagePicker.getImage() method instead. • lib/questionAnswerPages/Edit_Answer.dart:712:36 • deprecated_member_use info • The value of the field '_cardKey' isn't used • lib/questionAnswerPages/ShowFullAnswer.dart:163:19 • unused_field info • The declaration '_loadDocument' isn't referenced • lib/questionAnswerPages/ShowFullAnswer.dart:332:25 • unused_element info • The value of the local variable 'snackBar' isn't used • lib/questionAnswerPages/ShowFullAnswer.dart:450:14 • unused_local_variable info • This function has a return type of 'FutureOr', but doesn't end with a return statement • lib/questionAnswerPages/ShowFullAnswer.dart:1011:18 • missing_return info • 'pickImage' is deprecated and shouldn't be used. Use imagePicker.getImage() method instead. • lib/questionAnswerPages/ShowFullAnswer.dart:1012:36 • deprecated_member_use info • The declaration '_reply' isn't referenced • lib/questionAnswerPages/answer_Comments.dart:17:6 • unused_element info • The value of the local variable 'isNotPostOwner' isn't used • lib/questionAnswerPages/answer_Comments.dart:130:12 • unused_local_variable warning • The parameter 'context' is required • lib/questionAnswerPages/answer_Comments.dart:239:26 • missing_required_param info • Avoid using unnecessary statements • lib/questionAnswerPages/answer_Comments.dart:359:62 • unnecessary_statements info • The value of the field '_context' isn't used • lib/questionAnswerPages/answer_upload.dart:56:16 • unused_field info • The declaration '_loadDocument' isn't referenced • lib/questionAnswerPages/answer_upload.dart:379:25 • unused_element info • 'pickImage' is deprecated and shouldn't be used. Use imagePicker.getImage() method instead. • lib/questionAnswerPages/answer_upload.dart:625:36 • deprecated_member_use info • The declaration '_loadDocument' isn't referenced • lib/questionAnswerPages/answer_widget.dart:469:25 • unused_element info • The value of the local variable 'snackBar' isn't used • lib/questionAnswerPages/answer_widget.dart:587:14 • unused_local_variable info • This function has a return type of 'FutureOr', but doesn't end with a return statement • lib/questionAnswerPages/answer_widget.dart:1402:18 • missing_return info • 'pickImage' is deprecated and shouldn't be used. Use imagePicker.getImage() method instead. • lib/questionAnswerPages/answer_widget.dart:1403:36 • deprecated_member_use info • Avoid empty statements • lib/questionAnswerPages/feed.dart:61:5 • empty_statements info • The value of the local variable 'isPostOwner' isn't used • lib/questionAnswerPages/question_only_widget.dart:179:14 • unused_local_variable info • The value of the local variable 'snackBar' isn't used • lib/questionAnswerPages/question_only_widget.dart:364:14 • unused_local_variable info • The value of the field '_scaffoldKey' isn't used • lib/questionAnswerPages/upload_questions.dart:32:9 • unused_field info • The value of the local variable 'snackBar' isn't used • lib/questionAnswerPages/upload_questions.dart:141:14 • unused_local_variable info • 'autovalidate' is deprecated and shouldn't be used. Use autovalidateMode parameter which provides more specific behavior related to auto validation. This feature was deprecated after v1.19.0. • lib/questionAnswerPages/upload_questions.dart:726:9 • deprecated_member_use info • This function has a return type of 'Route', but doesn't end with a return statement • lib/routeGenerator.dart:13:25 • missing_return info • The declaration '_user' isn't referenced • lib/screens/Login/ForgetPasswordEmailEnter.dart:11:19 • unused_element info • The value of the field '_isPasswordVisible' isn't used • lib/screens/Login/ForgetPasswordEmailEnter.dart:22:8 • unused_field info • The value of the field '_firestore' isn't used • lib/screens/Login/ForgetPasswordEmailEnter.dart:24:9 • unused_field info • 'autovalidate' is deprecated and shouldn't be used. Use autovalidateMode parameter which provides more specific behavior related to auto validation. This feature was deprecated after v1.19.0. • lib/screens/Login/ForgetPasswordEmailEnter.dart:95:19 • deprecated_member_use info • The declaration '_user' isn't referenced • lib/screens/Registration/FullName.dart:13:19 • unused_element info • The value of the field '_isPasswordVisible' isn't used • lib/screens/Registration/FullName.dart:31:8 • unused_field info • The value of the field '_auth' isn't used • lib/screens/Registration/FullName.dart:32:9 • unused_field info • The value of the field '_firestore' isn't used • lib/screens/Registration/FullName.dart:33:9 • unused_field info • The value of the field '_scaffoldGlobalKey' isn't used • lib/screens/Registration/FullName.dart:38:9 • unused_field info • 'autovalidate' is deprecated and shouldn't be used. Use autovalidateMode parameter which provides more specific behavior related to auto validation. This feature was deprecated after v1.19.0. • lib/screens/Registration/FullName.dart:99:19 • deprecated_member_use info • The value of the field '_focusNode' isn't used • lib/screens/Registration/registration_screen.dart:34:13 • unused_field info • 'autovalidate' is deprecated and shouldn't be used. Use autovalidateMode parameter which provides more specific behavior related to auto validation. This feature was deprecated after v1.19.0. • lib/screens/Registration/registration_screen.dart:143:23 • deprecated_member_use info • 'autovalidate' is deprecated and shouldn't be used. Use autovalidateMode parameter which provides more specific behavior related to auto validation. This feature was deprecated after v1.19.0. • lib/screens/Registration/registration_screen.dart:234:23 • deprecated_member_use info • The value of the field '_auth' isn't used • lib/screens/WelcomeScreens/welcome_screen.dart:29:27 • unused_field info • The value of the field '_auth' isn't used • lib/screens/google_Sign_In/CreateAccountPage.dart:28:9 • unused_field info • 'autovalidate' is deprecated and shouldn't be used. Use autovalidateMode parameter which provides more specific behavior related to auto validation. This feature was deprecated after v1.19.0. • lib/screens/google_Sign_In/CreateAccountPage.dart:134:23 • deprecated_member_use info • The value of the local variable 'recipientId' isn't used • lib/screens/home_screen.dart:169:22 • unused_local_variable info • The value of the local variable 'body' isn't used • lib/screens/home_screen.dart:197:22 • unused_local_variable info • The value of the local variable 'recipientId' isn't used • lib/screens/home_screen.dart:249:22 • unused_local_variable info • The value of the local variable '_returnString' isn't used • lib/screens/home_screen.dart:342:12 • unused_local_variable info • Name types using UpperCamelCase • lib/screens/home_screen.dart:599:7 • camel_case_types info • The value of the field '_image' isn't used • lib/screens/imageUploadFirebase.dart:8:8 • unused_field info • The value of the field '_uploadedFileURL' isn't used • lib/screens/imageUploadFirebase.dart:9:10 • unused_field info • 'pickImage' is deprecated and shouldn't be used. Use imagePicker.getImage() method instead. • lib/screens/imageUploadFirebase.dart:11:23 • deprecated_member_use info • 'List' is deprecated and shouldn't be used. Use a list literal, [], or the List.filled constructor instead • lib/services/chatActionsFunctions.dart:5:20 • deprecated_member_use info • 'List' is deprecated and shouldn't be used. Use a list literal, [], or the List.filled constructor instead • lib/services/chatActionsFunctions.dart:5:39 • deprecated_member_use info • The value of the local variable 'key' isn't used • lib/services/chatActionsFunctions.dart:19:20 • unused_local_variable info • 'RaisedButton' is deprecated and shouldn't be used. Use ElevatedButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). This feature was deprecated after v1.25.0-8.1.pre. • lib/te.dart:138:15 • deprecated_member_use info • 'RaisedButton' is deprecated and shouldn't be used. Use ElevatedButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). This feature was deprecated after v1.25.0-8.1.pre. • lib/te.dart:148:15 • deprecated_member_use info • 'RaisedButton' is deprecated and shouldn't be used. Use ElevatedButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). This feature was deprecated after v1.25.0-8.1.pre. • lib/te.dart:155:15 • deprecated_member_use info • 'RaisedButton' is deprecated and shouldn't be used. Use ElevatedButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). This feature was deprecated after v1.25.0-8.1.pre. • lib/te.dart:161:15 • deprecated_member_use info • 'RaisedButton' is deprecated and shouldn't be used. Use ElevatedButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). This feature was deprecated after v1.25.0-8.1.pre. • lib/te.dart:167:15 • deprecated_member_use info • 'RaisedButton' is deprecated and shouldn't be used. Use ElevatedButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). This feature was deprecated after v1.25.0-8.1.pre. • lib/te.dart:174:15 • deprecated_member_use info • 'RaisedButton' is deprecated and shouldn't be used. Use ElevatedButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). This feature was deprecated after v1.25.0-8.1.pre. • lib/te.dart:182:15 • deprecated_member_use info • 'FlatButton' is deprecated and shouldn't be used. Use TextButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). This feature was deprecated after v1.25.0-8.1.pre. • lib/widgets/Edit_Follow_Button.dart:21:11 • deprecated_member_use info • The value of the local variable 'snackBar' isn't used • lib/widgets/PostWidget.dart:209:14 • unused_local_variable info • The declaration '_firestore' isn't referenced • lib/widgets/messageBubble.dart:14:7 • unused_element info • Use `lowercase_with_underscores` for package names • pubspec.yaml:1:7 • package_names warning • Publishable packages can't have git dependencies • pubspec.yaml:50:5 • invalid_dependency warning • Publishable packages can't have git dependencies • pubspec.yaml:54:5 • invalid_dependency ``` **flutter doctor -v output** ```[✓] Flutter (Channel stable, 2.0.1, on Linux, locale en_US.utf8) • Flutter version 2.0.1 at /home/shivam/development/appDev/flutter • Framework revision c5a4b4029c (6 days ago), 2021-03-04 09:47:48 -0800 • Engine revision 40441def69 • Dart version 2.12.0 [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3) • Android SDK at /home/shivam/Android/Sdk • Platform android-30, build-tools 30.0.3 • Java binary at: /home/shivam/development/android-studio/jre/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593) • All Android licenses accepted. [✓] Chrome - develop for the web • Chrome at google-chrome [✓] Android Studio • Android Studio at /home/shivam/development/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 • android-studio-dir = /home/shivam/development/android-studio/ • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593) [✓] VS Code (version 1.53.2) • VS Code at /usr/share/code • Flutter extension version 3.20.0 [✓] Connected device (1 available) • Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.72 • No issues found! ```
markusaksli-nc commented 3 years ago

Hi @shivam-modi The error you are getting doesn't seem to have anything to do with firebase. Also based on the screenshot (please refrain from using screenshots, they make searching the issue impossible) you are using a severely outdated version of firebase_auth (from Oct 12, 2018). Closing this because it doesn't seem to have anything to do with FlutterFire, google sign in with auth works just fine on the latest versions, and because none of the details in the issue template were provided. Please switch to the latest versions of the plugins and consider opening the issue in https://github.com/flutter/flutter/issues if the server socket error persists. Thank you

shivam-modi commented 3 years ago

Hello @markusaksli-nc At first, I opened the issue in https://github.com/flutter/flutter/issues, but they closed it saying it doesn't look like an issue in flutter rather it is an issue in FlutterFire. So, I opened the issue here. Now, you are saying it is not an issue in flutterfire. What should I do next? Also as you mentioned that, I am using an older version of firebase_auth it is because there are dependency constraints that make me unable to upgrade the package. Although I like to mention that it is working fine earlier in both web and app. But now working only on the app.

markusaksli-nc commented 3 years ago

Could you link the issue you opened on https://github.com/flutter/flutter/issues ? What dependency constraints stop you from being able to upgrade? Like I mentioned the version you are using is over 2 years old and there have been multiple major reworks and improvements since then. Even if the issue was with firebase_auth the only way you would get a fix is by upgrading to a newer version anyway.

shivam-modi commented 3 years ago

Here is the link to the issue I opened yesterday https://github.com/flutter/flutter/issues/77772. I am using chat_pickers https://pub.dev/packages/chat_pickers which makes me unable to update to newer versions of flutter firebase packages and some other packages. I can't remove this package as it is the eternal part of my app. Is there any way to upgrade these packages without removing them?

markusaksli-nc commented 3 years ago

In that case you should either switch to a more up to date package, figure out your own solution, or try to contrubute so it could be compatible with the latest versions of the officially supported firebase packages.

As it stands though there is nothing here for us to fix since the issue is just with a vastly outdated package version.