FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
130 stars 26 forks source link

Flutterflow not getting data from database... #764

Closed Dentiphoto closed 1 year ago

Dentiphoto commented 1 year ago

Has your issue been reported?

Current Behavior

I have an app for ios and android. It has been published. The database on Firebase worked well.

But I had an error deploying push notifications. There has always been a mistake. Yesterday, when I tried again to deploy the push notifications, all the given databases from FlutterFlow were deleted and the connection with Firebase was lost.

I manually recreated all collections and data in FlutterFlow. There are no errors in the project.

I connected the database to Firebase, but in app and run mode there is no data from Firebase.

At the same time, in the application, I create a test user account and it appears in Firebase.

I also got a bug in Firebase functions yesterday. It was written "Waiting for the first deployment".

I do not know what to do. My app is not working.

Expected Behavior

The data from Firebase should appear in the Application and FlutterFlow Manager.

Steps to Reproduce

Run mode-only notification: Firestore Security Rules Error on ContainerMain: Missing or insufficient permissions.

Reproducible from Blank

Bug Report Code

ITEelM/lw4ZIpbxb0M/LYexV9AMwJ0QlUIInj+0bWRMhfLmrPLAEOvT4Q1VLYtTnTVA7BVaYnk8xp/fFkvDlDO1fOgesbLpB+K5XQQLgLVuQRK6LEKuOXER7M99Yf3aayJ7YgAkmPvJvLEYO1zite/CdG3qCf9qOYwx5e6fDbOY=

Context

Database not working...

Visual documentation

Снимок экрана 2023-04-16 в 11 38 53 Снимок экрана 2023-04-16 в 11 38 04 Снимок экрана 2023-04-16 в 11 37 54 Снимок экрана 2023-04-16 в 11 37 50 Снимок экрана 2023-04-16 в 11 37 42 Снимок экрана 2023-04-16 в 11 26 38 Снимок экрана 2023-04-16 в 11 25 45 Снимок экрана 2023-04-16 в 11 21 41 Снимок экрана 2023-04-16 в 11 39 02 Снимок экрана 2023-04-16 в 11 39 48

Run mode

Снимок экрана 2023-04-16 в 11 44 20

Additional Info

No response

Environment

- FlutterFlow version:
Dentiphoto commented 1 year ago
Снимок экрана 2023-04-16 в 11 52 08

Flutterflow Content Manager not loading data...

Dentiphoto commented 1 year ago
Снимок экрана 2023-04-16 в 11 54 24

Nothing in functions...

Dentiphoto commented 1 year ago
Снимок экрана 2023-04-16 в 11 55 52

I have a Firefoo data management application and the data from the database is read into the application.

But the data is not being transferred properly to FlutterFlow.

hariprasadms commented 1 year ago

Hi @Dentiphoto - Thanks for reporting the issue with details. Looking at first few images, I see a difference in FlutterFlow editor version displayed. Below is the version displaying in my FF editor home page. Not sure why this version difference in your editor. I suggest, do a hard-refresh for your browser ( Ctrl+R) and see the version changes to below version. If any changes, try fire-store rules deployment and see if there are any differences.

image

Regarding firestore security rules warning message displayed, this happens when security rules are not deployed properly. I suggest, copy rules from FF editor to firebase fire-store rules and save them. Try to access data in app UI and firestore cms manager and see if there are any differences.

Try these suggestions and let us know how it goes. Also update Environment in the issue

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 7 days with no activity. If there are no further updates, a team member will close the issue.

BirgitPohl commented 1 year ago

I have a similar problem, only that I didn't play around with notifications yet. I'm just building my app. I have a user's account and a little bit of static content.

What has happened is that after someone in my team re-created the database rules on Firebase directly, I had difficulties re-creating the rules from Flutterflow. So I completely re-connected the Flutterflow with the Firebase instance. Since then Flutterflow has shown no data whatsoever. It is as if both are out of sync.

I find it strange because I believe there are people who are also connecting existing data from Firebase to Flutterflow. I have seen some Community entries in recent times. So, I expect Flutterflow to handle a back-sync from Firebase.

I have the recent version loaded mentioned above.

What I see as a risk: Building the app and deploying the app to users: Once there is an issue with the connection of Firebase and Flutterflow, we would be forced to recreate the entire database including the (user) data.

BirgitPohl commented 1 year ago

So, I figured in my case, that Flutterflow requires read access the same way as any other app, to be able to display data in the Flutterflow view.

I re-created a users table and tried to re-create the same field. I came to the same issue that the users table had an endless loading, but only because Firebase data storage didn't have access rights for it to read. So I set it to true for everyone and then I was able to see the data that was already there.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 7 days with no activity. If there are no further updates, a team member will close the issue.

agreaves commented 1 year ago

Hi! We’re closing this issue due to inactivity, as we have not been able to reproduce the issue and do not currently have enough information to investigate. If this issue persists, please let us know or contact our support team. Thanks!