Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Firebase auth email/password signin not working in release mode with flutter

  • WEB:-
    I am using firebase authentication for my flutter app with normal email/password sign-in. The login is working fine when I run the web app in debug mode. I am able to log in with my credentials but when I try to run it in release mode I am unable to log in with my email and password. It is not showing any error in the console, in the logs, or in any exception.

  • Android:-
    I am facing the same issue with android.

    1. Added SHA-1 in console.

      MEDevel.com: Open-source for Healthcare and Education

      Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

      Visit Medevel

    2. Signed the APP.

    3. Configured the firebase for multiple time and checked SDK instructions.

    4. Tried flutter clean.

  <script src="https://www.gstatic.com/firebasejs/8.10.1/firebase-app.js"></script>
  <script src="https://www.gstatic.com/firebasejs/8.10.1/firebase-auth.js"></script>
  <script src="https://www.gstatic.com/firebasejs/8.10.1/firebase-firestore.js"></script>
  <script src="https://www.gstatic.com/firebasejs/8.10.1/firebase-storage.js"></script>

  firebase_auth: ^4.0.2
  firebase_core: ^2.1.0

Doctor summary:

\[√\] Flutter (Channel stable, 3.3.9, on Microsoft Windows \[Version 10.0.19044.2364\], locale en-IN)

\[√\] Android toolchain - develop for Android devices (Android SDK version 33.0.0)

\[√\] Chrome - develop for the web

\[√\] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.2)

\[√\] Android Studio (version 4.1)

\[√\] VS Code (version 1.75.1)

\[√\] Connected device (3 available)

\[√\] HTTP Host Availability

Can anyone have faced the issue with flutter please help me to resolve this?

>Solution :

Just try adding internet permission in AndroidManifest.xml file in,
android/app/main/res/

add,

<uses-permission android:name="android.permission.INTERNET"/>

inside manfest tag

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading