[firebase_core]: Firebase.initializeApp works locally on flutter web, but throws exception on deploy done in AWS Amplify #13006
Labels
blocked: customer-response
Waiting for customer response, e.g. more information was requested.
platform: web
Issues / PRs which are specifically for web.
plugin: core
type: bug
Something isn't working
Is there an existing issue for this?
Which plugins are affected?
Core
Which platforms are affected?
Web
Description
After running the
flutterfire configure
command on terminal, setting all platforms and calling the Firebase.initializeApp method, The flutter app is initializing normally on android, ios and web locally. However, when the web app is deployed to production, it does not initialize. I am not using Firebase Hosting. Both the deploy and hosting of the web app are being done at AWS Amplify.I caught the following exception in the browser console:
All dependencies are up to date. I checked if the
firebase_options.dart
file contained the correct credentials, which it did.Reproducing the issue
1- Run flutterfire configure in the root of your flutter project
2- select platforms android, ios and web
3- Call
in your main.dart file
4- run
flutter build web
on a terminal5- deploy the web build (not to firebase hosting, but to AWS Amplify)
6- open the app in any web browser and open console tab
7- it will show the following exception:
Firebase Core version
3.1.1
Flutter Version
3.22.2
Relevant Log Output
Flutter dependencies
Expand
Flutter dependencies
snippetAdditional context and comments
No response
The text was updated successfully, but these errors were encountered: