You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
+

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.
title: 'Email: Client access to your Cloud Firestore database expired'
4
+
title: 'email: client access to your cloud firestore database expired'
5
5
---
6
-
# Email: Client access to your Cloud Firestore database expired
6
+
# Email: Client Access to Your Cloud Firestore Database Expired
7
7
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:
10
9
11
-
### Why Am I Seeing This Message?
10
+
**"Client access to your Cloud Firestore database expired"**
12
11
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.
14
13
15
-

14
+
**Why Am I Seeing This Message?**
16
15
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:
19
17
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.
21
20
21
+

22
22
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:
25
24
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**
28
26
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.
30
28
31
-

29
+
[ Read the step-by-step instructions](https://docs.flutterflow.io/integrations/database/cloud-firestore/firestore-rules/)
32
30
33
-
-Update the rules with some conditions in your database to make it secure.
31
+
-**Option 2: Manually Update Firestore Rules in Firebase Console**
34
32
35
-

33
+
Follow these steps to manually update the rules:
36
34
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
+

46
+
47
+
- **Option B: Secure Your Rules for Production**
48
+
49
+
Update your rules to enforce proper authentication and access controls.
Copy file name to clipboardExpand all lines: docs/troubleshooting/firebase-issues/firebase_storage_section_is_missing_from_firebase_settings_tab_in_flutterflow.md
Copy file name to clipboardExpand all lines: docs/troubleshooting/firebase-issues/get_the_sum_of_firebase_document_or_api_values.md
+27-18Lines changed: 27 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,39 +5,48 @@ title: Get the Sum of Firebase Document or API Values
5
5
---
6
6
# Get the Sum of Firebase Document or API Values
7
7
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
+
Sometimesyou 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.
9
9
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
+
:::
11
14
12
-
Follow this simple steps below:
15
+
**Steps to calculate the sum**
13
16
17
+
1.**Identify where to display the total**
14
18
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.
16
20
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
+

18
22
19
-

23
+
2.**Prepare your data type**
20
24
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.
22
26
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
+

24
28
25
-

26
29
27
-
### Step 3: Select Your Data
30
+
3.**Retrieve and map your data**
28
31
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.
30
33
31
-

34
+

32
35
33
-
### Step 4: Calculate the Sum
36
+
4.**Calculate the Sum**
34
37
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.
36
39
37
-

40
+

38
41
39
-
### Step 5: Checking Your Results
42
+
5.**Checking Your Results**
40
43
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!
42
45
43
-

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.
0 commit comments