Intermittent issue with Firebase action query to only 1 collection.

Troubleshooting

Wondering if anyone else is having this issue that seemed to start a couple of weeks ago...

My app pulls from a collection that has one document that contains various variables like version number to compare against the expected version.

This query is done on a page load action that just queries the collection based on a field (uid), nothing fancy.

90% of the time, this step in the chain works without issue. But intermittently, the page this loads on will hang up on this query. I've troubleshot the issue by adding snack bars along the way to tell me where in the process it stops and it is absolutely with this query.

I can go back a page and queries on other collections work 100% of the time, but this one query to this one collection will hang up. It is also called on another page in my app and does the same thing.

If I swipe over to another app and back to my app, it will instantly unblock, complete the query, and continue through the rest of the action chain.

I've checked my Firestore Rules and verified it has READ access.

This has been in place for many months, but only recently, with no changes to the query, it has started to give me issues. I can't get the problem to duplicate on RUN mode. This only happens on the device and I've only tested on iOS. Not sure if it occurs on Android.

Any help or ideas to check is greatly appreciated.

What have you tried so far?

Re-deploying Firestore Rules

Adding another schema to the collection and duplicating the variables and calling that document

Did you check FlutterFlow's Documentation for this topic?
Yes
2 replies