I am having a problem with some internet connection in my app.
The problem is that Cloud Firestore doesn't work when I add agora rtc engine to the dependencies alongside with Cloud Firestore. Everything works fine in debug mode, but in release mode, when I open my app to make a test, everything works except Google Cloud Firestore. It wont load/write any data like there is no internet connection. When I remove agora rtc engine from pubspec.yaml dependencies, Cloud Firestore works back. Any suggestions?
Related
I'm integrating flutter add-to-app module into my existing native host app. Both native host app and Flutter add-to-app module are using firebase crashlytics, but they are using different version of firebase.
Flutter module -> use latest firebase version
Native host app -> use quite old firebase version
This lead to following error (crash) when flutter module trying to record an error.
'com.google.firebase.crashlytics.FirebaseCrashlytics.core' is inaccessible to class 'com.google.firebase.crashlytics.FlutterFirebaseCrashlyticsInternal'
I assumed that this is because there are some updates in latest firebase so FlutterFirebaseCrashlyticsInternal somehow can't talk to FirebaseCrashlytics.core
Note:
The only firebase feature I'm going to use is: Firebase crashlytics
Due to some reasons, I'm unable to upgrade firebase version in Native app at this moment.
Wondering if this is something I can fix from flutter side without giving any change on Native Host app side? Or the only way to fix is update firebase configured on native side to latest version?
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'm implementing AppCheck in my app in order to prevent bad access to Firestore. I activated the service in Firebase Console and add this line await FirebaseAppCheck.instance.activate(); after Firebase initialization.
Now, if I try to access Firestore in my app through emulator it logs PERMISSION DENIED.
How could I develop updates for my app and continue testing while AppCheck is enabled?
After you have registered your app for App Check, your app normally won't run in an emulator or from a continuous integration (CI) environment, since those environments don't qualify as valid devices. If you want to run your app in such an environment during development and testing, you can create a debug build of your app that uses the App Check debug provider instead of a real attestation provider.
Refer documentation Flutter app Check details.
However, as per the documentation, the debug provider does not currently have a Dart API; you'll need to apply the changes separately for each of your platforms.
You may check the App Check debug provider available for other platforms like Apple, Web and Android.
I run my flutter app in 2 emulators, android and chrome. In android emulator my app showed mysql data but flutter web didn't show the data in chrome emulator.
Any help?
Which plugin are you using to access SQL data? If you're using sqflite, it doesn't have support for web. Note that sqflite are commonly used for local storage. If you're looking for other end-users to access the same database as well, you might want to consider looking into other solutions like Firebase Cloud Firestore. Otherwise, you can try using drift plugin - which has SQL support for mobile and web.
I am trying to access an app i uploaded on play store through google play console on windows and every time there is network issue. I cleared the cached files and cookies. i restarted everything.It's still not working on any browser(chrome, Firefox, int Exp). I tried on an emulator and my phone and it's working there. But
i want to access it on my computer.