Skip to content

FlutterFlow Environment Switching Not Updating Firebase Configuration #7027

@codyc-xyz

Description

@codyc-xyz

Can we access your project?

  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

Upon switching environments via the Flutterflow Desktop UI from development to production, none of the relevant configuration files get updated, resulting in multiple of my projects being locked to exclusively the development environment with no way to access production without manually exporting the code and changing the configuration files myself. Regenerating configuration files from the FlutterFlow UI also does not help.

On projects I am using direct firebase calls, the result is that every environment points towards the development environment from Flutterflow Local Run. On projects I am using authenticated api calls to firebase functions, the result is this message in my firebase server logs:

Firebase ID token has incorrect "aud" (audience) claim. Expected "{prod-env-nam}" but got "{dev-env-name}". Make sure the ID token comes from the same Firebase project as the service account used to authenticate this SDK. See https://firebase.google.com/docs/auth/admin/verify-id-tokens for details on how to retrieve an ID token.

This is a duplicate of this issue, which I have replicated over multiple different projects, on the latest version of FlutterFlow. Please actually investigate rather than closing with no follow-up. This is a relatively new bug as I have been using this feature without issue for close to 2 years.
#7008

Expected Behavior

When I toggle between environments, The result should be that the app points towards the relevant firebase environment I have toggled to, at the very least regenerating config files should result in pointing to the correct db.

Steps to Reproduce

  1. Create two environments with separate firebase databases
  2. Create any difference in content in the db that will be obvious upon launching the app, e.g. a separate piece of text to render etc
  3. toggle between the environments, and launch FF desktop test run
  4. The content you see will not change despite being different in each database

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

Firebase ID token has incorrect "aud" (audience) claim. Expected "{prod}" but got "{dev}". Make sure the ID token comes from the same Firebase project as the service account used to authenticate this SDK. See https://firebase.google.com/docs/auth/admin/verify-id-tokens for details on how to retrieve an ID token.

Visual documentation

Image

Environment

- FlutterFlow version: 6.6.24
- Platform: Desktop Mac App 
- Browser name and version: Desktop App
- Operating system and version affected: All

Additional Information

I am totally bricked from launching prod from Flutterflow for any of my apps without manually editing the code. This has created significant friction in my deployment pipeline and made multiple bug reports incredibly difficult to investigate.

Metadata

Metadata

Assignees

Labels

status: needs informationMore information/context is needed for assessment.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions