Skip to content

Commit 2f4473b

Browse files
Libraries support for Firebase (#249)
* Added info on libraries with Firebase * remove 1 example * Minor fix --------- Co-authored-by: Pooja Bhaumik <[email protected]>
1 parent 667d5ae commit 2f4473b

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

docs/resources/projects/libraries.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ To publish a FlutterFlow project as a library, start by creating a FlutterFlow p
8585
When a project is converted into a library, the following features are disabled to ensure compatibility and functionality limitations:
8686

8787
- App settings
88-
- Firebase
8988
- Supabase
9089
- Development environments
9190
- Authentication
@@ -98,8 +97,6 @@ When a project is converted into a library, the following features are disabled
9897
- Google Analytics
9998
- OneSignal
10099
- Mux
101-
- Cloud functions
102-
- Firestore Collections
103100

104101
## Importing a Library
105102

@@ -318,6 +315,24 @@ To set library values, navigate to **Settings and Integrations > Project Setup >
318315
For different [**development environments**](../../testing-deployment-publishing/development-environments/development-environments.md) (e.g., development vs. production), you can bind Library Values to [**environment values**](../../testing-deployment-publishing/development-environments/development-environments.md#use-environment-values). For instance, you could have two different Library Values for an API key, such as `DEV_OPENAI_API_KEY` and `PROD_OPENAI_API_KEY`, and bind them to the development and production environments to track API usage separately.
319316
:::
320317

318+
## Libraries with Firebase
319+
You can create collections and enable various Firebase features in library projects without connecting a separate Firebase project.
320+
321+
In library projects, you won’t see an option to link to a Firebase project. Instead, the project that imports the library handles the actual Firebase connection.
322+
323+
Any indexes or security rules defined in the library are recognized by the importing project and deployed accordingly.
324+
325+
:::warning[Limitations]
326+
Libraries work with Firebase but have **some limitations**. The **Firebase Auth** and **Firebase Storage** are not directly supported in library projects at this time. If you need these features in your library’s functionality, you can include an action that accomplishes this task as a [**callback**](../../resources/ui/components/callbacks.md).
327+
:::
328+
329+
If your team has multiple projects that share a common Firebase feature, turning it into a library is a great idea. This ensures the same logic is used and connects to the same Firestore project across all apps.
330+
331+
Here are some examples of library projects you can build with Firebase:
332+
333+
- **Basic Analytics or Tracking**: A library that logs events to Firestore; useful for aggregating usage data at an application level.
334+
- **Configuration or Settings**: A library that serves app-wide configurations (like feature flags, UI themes, or layout choices) is handled in Firebase Remote Config.
335+
321336
## FAQs
322337

323338
<details>

0 commit comments

Comments
 (0)