-
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.-
Added SHA-1 in console.
-
Signed the APP.
-
Configured the firebase for multiple time and checked SDK instructions.
-
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