diff --git a/docs/resources/projects/libraries.md b/docs/resources/projects/libraries.md index 23ac12ff..9b698a7d 100644 --- a/docs/resources/projects/libraries.md +++ b/docs/resources/projects/libraries.md @@ -85,7 +85,6 @@ To publish a FlutterFlow project as a library, start by creating a FlutterFlow p When a project is converted into a library, the following features are disabled to ensure compatibility and functionality limitations: - App settings - - Firebase - Supabase - Development environments - Authentication @@ -98,8 +97,6 @@ When a project is converted into a library, the following features are disabled - Google Analytics - OneSignal - Mux -- Cloud functions -- Firestore Collections ## Importing a Library @@ -318,6 +315,24 @@ To set library values, navigate to **Settings and Integrations > Project Setup > 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. ::: +## Libraries with Firebase +You can create collections and enable various Firebase features in library projects without connecting a separate Firebase project. + +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. + +Any indexes or security rules defined in the library are recognized by the importing project and deployed accordingly. + +:::warning[Limitations] +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). +::: + +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. + +Here are some examples of library projects you can build with Firebase: + +- **Basic Analytics or Tracking**: A library that logs events to Firestore; useful for aggregating usage data at an application level. +- **Configuration or Settings**: A library that serves app-wide configurations (like feature flags, UI themes, or layout choices) is handled in Firebase Remote Config. + ## FAQs