Skip to content

Commit 96fcf48

Browse files
committed
improved formating
1 parent e17f637 commit 96fcf48

7 files changed

+246
-185
lines changed

docs/troubleshooting/firebase-issues/content_manager_error_error_updating_firestore_security_rules.md

Lines changed: 0 additions & 81 deletions
This file was deleted.
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
---
2+
keywords: ['security', 'error', 'firebase', 'permissions']
3+
slug: /content-manager-firestore-error
4+
title: Content Manager Firestore Error
5+
---
6+
7+
# Content Manager Firestore Error
8+
9+
You may encounter the following error when trying to use the **FlutterFlow Content Management System (CMS)**:
10+
11+
```js
12+
Error updating Firestore Security Rules...
13+
Make sure you set up Firebase for your project under "Settings" > "Firebase".
14+
```
15+
16+
17+
![](../assets/20250430121517855306.png)
18+
19+
This error typically occurs when Firebase permissions or authentication settings are not properly configured. Follow the steps below to resolve it.
20+
21+
**Step-by-Step Fix**
22+
23+
1. **Enable Email/Password Sign-In**
24+
25+
1. Open the [Firebase Console](https://console.firebase.google.com/).
26+
2. Select your project.
27+
3. From the left-hand menu, click **Authentication**.
28+
4. Click **Get started** (if not already started).
29+
5. Go to the **Sign-in method** tab.
30+
6. Ensure **Email/Password** is listed and marked as **Enabled** ✅.
31+
32+
![](../assets/20250430121518159572.png)
33+
34+
:::note
35+
If Email/Password is not enabled, turn it on by clicking the pencil icon and toggling the setting.
36+
:::
37+
38+
39+
2. **Add Required Firebase Project Permissions**
40+
41+
FlutterFlow requires the following roles to be granted to `[email protected]` for proper functionality:
42+
43+
- **Editor**
44+
- **Cloud Functions Admin**
45+
- **Service Account Admin**
46+
47+
To add these permissions:
48+
49+
1. In the [Firebase Console](https://console.firebase.google.com/), open your project.
50+
2. Navigate to **Project Settings** > **Users & Permissions**.
51+
3. Check if `[email protected]` has the roles listed above.
52+
53+
![](../assets/20250430121518370897.png)
54+
55+
:::info
56+
If these roles are missing, the integration is incomplete. Make sure to add all three roles.
57+
:::
58+
59+
60+
3. **Update Firestore Rules in FlutterFlow**
61+
62+
1. In your FlutterFlow project, go to **Firestore** > **Settings**.
63+
2. Scroll down to the **Firestore Rules** section.
64+
3. Click **Deploy/Redeploy** to apply your latest rules.
65+
66+
![](../assets/20250430121518594245.png)
67+
68+
69+
4. **Define Your Firebase Schema**
70+
71+
Make sure your Firebase schema is fully defined. The Content Manager only displays fields that are already defined in your Firebase schema.
72+
73+
74+
5. **Ensure You're Using the Latest FlutterFlow Version**
75+
76+
Press:
77+
78+
- `Ctrl + R` (on Windows) or
79+
- `Cmd + R` (on macOS)
80+
81+
...to refresh and ensure you’re on the latest version of FlutterFlow.
82+
83+
84+
6. **Clear Cache and Re-Login**
85+
86+
After completing the above steps:
87+
88+
- Clear your browser cache.
89+
- Log out and log back into FlutterFlow.
90+
91+
If the issue persists, [visit this guide](https://docs.flutterflow.io) for additional support.
92+
93+
94+
:::info[Still Not Working?]
95+
Try Reconfiguring Permissions from Scratch
96+
:::
97+
98+
If none of the steps resolve the issue:
99+
100+
1. Remove existing Firebase permissions.
101+
2. Re-add all necessary roles from scratch.
102+
3. Follow the full setup instructions in the [official FlutterFlow Firebase integration guide](https://docs.flutterflow.io/integrations/firebase/overview).
103+
104+
105+
By following the steps above, you should be able to resolve the error and continue using FlutterFlow CMS without interruptions.
Lines changed: 37 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,55 @@
11
---
22
keywords: ['database', 'firebase', 'client']
33
slug: /email-client-access-to-your-cloud-firestore-database-expired
4-
title: 'Email: Client access to your Cloud Firestore database expired'
4+
title: 'email: client access to your cloud firestore database expired'
55
---
6-
# Email: Client access to your Cloud Firestore database expired
6+
# Email: Client Access to Your Cloud Firestore Database Expired
77

8-
## Background
9-
You've received an email from the Firebase that "Client access to your Cloud Firestore database expired"​
8+
You may receive an email from Firebase with the subject:
109

11-
### Why Am I Seeing This Message?
10+
**"Client access to your Cloud Firestore database expired"**
1211

13-
When the user enables the cloud firestore, there are two rules to select in order to get started:
12+
This message typically appears when your Firestore database is in **Test Mode** and the access duration has expired.
1413

15-
![](../assets/20250430121224235710.png)
14+
**Why Am I Seeing This Message?**
1615

17-
1. Test Mode (Time bounded)
18-
2. Production Mode (Not Time bounded but secured at the start)
16+
When setting up Firestore for the first time, Firebase offers two rule options:
1917

20-
Usually, the user selects the Test Mode and the Firestore works fine, but after the time has been completed the client access get expired. To keep using Firestore user must update the rules by using either of the solutions below.​
18+
1. **Test Mode** – Temporarily allows open access (expires after 30 days).
19+
2. **Production Mode** – Starts off restricted and requires secure rules.
2120

21+
![](../assets/20250430121224235710.png)
2222

23-
### Manage the Firestore Rules directly from FlutterFlow
24-
Head over to this article to see step by steps instructions about how to Manage the Firestore Rules directly from FlutterFlow.
23+
If you selected **Test Mode** during setup, Firestore access will automatically expire after the preset period. To continue using Firestore, you'll need to update the rules using one of the following options:
2524

26-
### Manually update the Firestore Rules from Firebase
27-
In order to keep using Firestore, User should head over to the **Firebase Firestore** section and select **Rules**. Here we can see our previously defined rules, We have **two options** here, any of these options will solve the problem.
25+
- **Option 1: Manage Firestore Rules From FlutterFlow**
2826

29-
- Update the timestamp date to a future date if you still want to keep it in test mode.​
27+
You can manage and deploy Firestore rules directly from FlutterFlow.
3028

31-
![](../assets/20250430121224547832.png)
29+
[ Read the step-by-step instructions](https://docs.flutterflow.io/integrations/database/cloud-firestore/firestore-rules/)
3230

33-
- Update the rules with some conditions in your database to make it secure.
31+
- **Option 2: Manually Update Firestore Rules in Firebase Console**
3432

35-
![](../assets/20250430121224874215.png)
33+
Follow these steps to manually update the rules:
3634

37-
After applying this solution, your problem should be resolved, if the problem still persists, feel free to contact us at [email protected]
35+
1. Go to the [Firebase Console](https://console.firebase.google.com/).
36+
2. Open your project and navigate to **Firestore Database**.
37+
3. Select the **Rules** tab.
38+
39+
From here, you have two options:
40+
41+
- **Option A: Extend Test Mode**
42+
43+
Update the expiration timestamp to a future date if you're still in development.
44+
45+
![](../assets/20250430121224547832.png)
46+
47+
- **Option B: Secure Your Rules for Production**
48+
49+
Update your rules to enforce proper authentication and access controls.
50+
51+
52+
![](../assets/20250430121224874215.png)
53+
54+
55+
If the issue persists, contact us at [[email protected]](mailto:[email protected]) for further assistance.

docs/troubleshooting/firebase-issues/firebase_storage_section_is_missing_from_firebase_settings_tab_in_flutterflow.md

Lines changed: 0 additions & 36 deletions
This file was deleted.

docs/troubleshooting/firebase-issues/get_the_sum_of_firebase_document_or_api_values.md

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,39 +5,48 @@ title: Get the Sum of Firebase Document or API Values
55
---
66
# Get the Sum of Firebase Document or API Values
77

8-
Sometimes, when working with databases, you might need to calculate the total of all values for a certain item or category. This is especially common when using APIs or working with Firebase. If you're looking to add up values from a database, this easy-to-follow guide is for you.
8+
Sometimes you need to display a total—such as a subtotal or count—based on data fetched from Firebase or an API. This guide walks you through the steps to calculate and display that sum in FlutterFlow.
99

10-
## Steps to Get the Sum of Firebase Document or API Values
10+
:::info[Prerequisites]
11+
- A working Firebase collection or API that returns numeric values.
12+
- A FlutterFlow UI component (e.g., **Text**) where the sum will be displayed.
13+
:::
1114

12-
Follow this simple steps below:
15+
**Steps to calculate the sum**
1316

17+
1. **Identify where to display the total**
1418

15-
### Step 1: Identify Where You Need the Total
19+
Decide where in your app the total will appear. For example, insert a **Text** widget that will show the computed sum.
1620

17-
First, decide where in your code you need to display the total sum. This could be a text field or a variable in your code where the final sum will be shown.
21+
![](../assets/20250430121219360101.png)
1822

19-
![](../assets/20250430121219360101.png)
23+
2. **Prepare your data type**
2024

21-
### Step 2: Prepare Your Data Type
25+
Next, you need to specify what kind of data you're adding up. For example, if you're working with numbers with decimal points, you'll classify your data as double. Make sure to indicate that you're dealing with a list of these values.
2226

23-
Next, you need to specify what kind of data you're adding up. For example, if you're working with numbers with decimal points, you'll classify your data as `double`. Make sure to indicate that you're dealing with a list of these values.
27+
![](../assets/20250430121219606895.png)
2428

25-
![](../assets/20250430121219606895.png)
2629

27-
### Step 3: Select Your Data
30+
3. **Retrieve and map your data**
2831

29-
Now, choose the specific data you want to sum up. You do this by picking out the documents from your database query and then mapping out the exact data field you're interested in.
32+
When fetching data from Firebase or an API, extract the values you want to sum. Use the `map()` function to create a list of those values.
3033

31-
![](../assets/20250430121219871237.png)
34+
![](../assets/20250430121219871237.png)
3235

33-
### Step 4: Calculate the Sum
36+
4. **Calculate the Sum**
3437

35-
With your list of values ready, store them in a variable (let's call it `var1`). Then, decide on the format you want for your result. Use the `reduce` function to add up all the values in your list, `var1`, to get your total sum.
38+
With your list of values ready, store them in a variable (let's call it `var1`). Then, decide on the format you want for your result. Use the `reduce` function to add up all the values in your list, `var1`, to get your total sum.
3639

37-
![](../assets/20250430121220084430.png)
40+
![](../assets/20250430121220084430.png)
3841

39-
### Step 5: Checking Your Results
42+
5. **Checking Your Results**
4043

41-
After completing these steps, you should have the total sum displayed where you need it. If it looks right, you've successfully calculated the sum!
44+
After completing these steps, you should have the total sum displayed where you need it. If it looks right, you've successfully calculated the sum!
4245

43-
![](../assets/20250430121220338400.png)
46+
[](../assets/20250430121220338400.png)
47+
48+
:::tip[Trobleshooting]
49+
- Use `.isNotEmpty` to prevent errors when the list is empty.
50+
- Format the output using `.toStringAsFixed(2)` to show 2 decimal places if needed.
51+
- Optional: Store the sum in a global variable for use across multiple pages.
52+
:::

0 commit comments

Comments
 (0)