Flutter Firebase does work on my main setup but not on my second although its the same app #12502
Unanswered
khalidauer
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I use two different Systems for coding. At home, I have an iMac and while I am traveling or on business trips I have a Windows laptop. When working from home, I don't have any problems running and developing my flutter app on both, iOS and Android.
However, when I am traveling I use my Windows Laptop I get weird errors from Firebase and my App seems to not like Firebase. I use Firebase Remote Config and Firebase Cloud Messaging.
When running my Android app on my Windows Laptop and try to get an FCM token, I get the following error:
And this is the error I get for Firebase Remote config (also Android/Windows setup):
I also do have an old MacBook and tried to get my app to run on iOS to test whether it is a Windows/setup problem or if I can re-create the problem. There I get a totally other problem:
When trying to print the FCM token with an Android device on my Mac I get the same error as on my Windows laptop with an Android device (see above).
This is my
main.dart
:And this is my
boot_service.dart
file:I still don't understand how it is possible that on my main setup (iMac) I can run both, Android and iOS without getting any errors... My
google-services.json
as well as myGoogleService-Info.plist
are all correct set.Inspired by this Stack answer, I also tested if my configuration works with the following CURL command. And yeah, it does work. I don't get any error. It successfully authenticates.
My
packages.yaml
file:Here are my flutter doctor -v prints for all three of my machines.
Main Setup (iMac):
Second Setup (Windows):
My old MacBook:
I have also tried to fix my Firebase Remote Config problem with the two following issues, but they did not work:
As mentioned from other users I also tried to set up a HotSpot and check date and time on my emulator. But those fixes also didn't solve my problem...
I really don't know what to do or try next to fix my problem. I cannot find any other Stack or GitHub issue which has faces the same or a similar issue. The most confusing part is that I have other apps which work very well with Firebase on my Windows Laptop and the app I am talking about in this post is working without any problem on my main setup...
I appreciate any kind of help!
Beta Was this translation helpful? Give feedback.
All reactions