I am using Firebase Authentication for my flutter application. When I try to login with my virtual device it works, but if I try to login with my real device or Chrome, nothing happens if I press the button. There is no error in the logs.
Creating a release apk and using the release version of the sha keys from firebase? It solved the problem for me when I had it.
Related
I've got Firebase Analytics configured for my Flutter app with -FIRDebugEnabled passed into the Xcode scheme. When I run the app, Firebase Analytics says that debug mode is enabled and that everything is working correctly. Events get logged with a successful upload.
However, nothing appears in Firebase Console. 0 active users, no devices found in DebugView and no events logged.
I ran flutter clean, reinstalled the app and still nothing is working. I've also added AdSupport.framework to the iOS app.
Anyone knows what might be happening?
I implemented google login in flutter without using firebase in flutter (google cloud console). It was working in apk then later I needed push notification service for which I used firebase (fcm token and all) then I released the app to playstore but google login does not work. I keep getting apiexception error. Has anybody faced this issue? if yes any help would be highly appreciated.
I do not have a specific answer to your problem but I have also faced this problem once, I accidentally resolved it though.
But Error 12500 is a general error code that may occur when attempting to use the Google Sign-In feature and is caused by a few potensial issues:
An issue with the SHA-1 fingerprint of your app's signing
certificate: To use Google Sign-In, you need to configure your app's
SHA-1 fingerprint and package name in the Firebase console. Make
sure that the fingerprint and package name you have configured in
the Firebase console match the ones you are using to sign your app.
An issue with the Google Services configuration file: Make sure you
have properly added the Google Services configuration file to your
app.
An issue with the Google Play Services library: Make sure you have
the latest version of the Google Play Services library installed in
your app.
An issue with the device or emulator you are using: Make sure you
are testing on a device or emulator that has Google Play Services
installed and is up to date.
Possible fixes to try/check:
Double-check the SHA-1 fingerprint and package name: Make sure that
the SHA-1 fingerprint and package name you have configured in the
Firebase console match the ones you are using to sign your app.
Make sure you have added the Google Services configuration file: The
Google Services configuration file is required for your app to
communicate with Google services, including Google Sign-In. Make
sure you have properly added this file to your app.
Update the Google Play Services library: Make sure you have the
latest version of the Google Play Services library installed in your
app. You can check for updates by going to the "SDK Manager" in
Android Studio.
Test on a device or emulator with Google Play Services installed:
Make sure you are testing on a device or emulator that has Google
Play Services installed and is up to date.
I hope this helps! I will quickly search if I can find any other solution.
I am working with flutter currently and everything was fine suddenly when I uninstalled the app from the device and rerun flutter run from the terminal it's suddenly not able to install the apk.
maybe when i including firebase in the flutter app then i facing this error.
Want to Know where is wrong my device or flutter code or something......
can show how the error appears in the debug console.
maybe you can try to follow on the documentation page here
I have added firebase authentication to my flutter project. and when it is running on the emulator. it is perfectly run on it with authentication feature(Login and sign in both are working fine).
but when I use it with my real mobile phone using USB debugging. it is perfectly running, except authentication. every time it is failed to login and sign in with real device
Are you doing both in Debug mode or are you doing Release mode on your device? If so, you might need to add the release SHA keys to Firebase.
cd android ./gradlew :app:signingReport
I'm currently using Microsoft and Google as login providers for my flutter app. After few months I build release apk and installed it on android 11 phone. When I try to login using Google it works fine. But When I try to login using Microsoft it shows email entering UI and when I try to enter email app crashes.
THis problem occurs in release mode. debug model it working fine.
IS there any solution to fix this problem?