On a FlutterFlow google map widget I am trying to display only the markers (locations) that have been added during the last 24 hrs.
On a FlutterFlow google map widget I am trying to display only the markers (locations) that have been added during the last 24 hrs. So I went to the firebase console - cloud firestore and modified the rules adding this to my collection:
allow read: if request.time < (resource.data.time_posted + duration.time(24, 0, 0, 0));
But now, when testing the applications I get a permission error like this:
"Run mode-only notification: Firestore Security Rules Error on myPage: Missing or insufficient permissions."
Before, when this line of the rules was allow read: if true
, all the locations were displayed.
Do you know what might be the problem?