Is that possible to write the rule to prevent the reading document if the user gps location is larger than 10 meters?
the collection is "shop" and document (document id is autogenerated id)contain fields GPS location
firestore permission with gps distance
78 Views Asked by Midhilaj At
1
There are 1 best solutions below
Related Questions in GOOGLE-CLOUD-FIRESTORE
- Firebase console is not showing updated data
- Delete firestore document based on rule
- How to retrieve Users' comment with their profile image and name?
- How to search array and find user ID in Firestore
- Problem with showing subcollection from Firebase
- How to assign data from a subcollection to its collection and render the new object? Using react, firebase and useeffect-hook
- Sanitising web urls for firestore
- How to trigger cloud function based on date stored in cloud firestore?
- Firestore/Vuejs: Can't delete from Firestore document
- Is there a work-around for the limited firebase query capabilities
- Firestore cache not sync
- How to combine/merge observables into a single observable and associate result with the input?
- Firebase cloud functions: Update user profile
- Module '"@react-native-firebase/firestore"' has no exported member 'CollectionReference'. ts(2614)
- Proper way to define the date field of my typescript interface that will be loaded from my cloud function?
Related Questions in FIREBASE-SECURITY
- How to set firebase rules based on database user id (not uid)
- firebase security permission not working
- Authentication error "Access Denied" in AngularFire when using Internet Explorer 9
- Is it possible to use Firebase's built in authentication via Google in both a web and an Android client?
- Firebase security rules custom field
- Firebase rules - Allow one user top-level write and other users to write to own child nodes
- firebase observeEventType for data change from children for which user may not have access to all children
- Understanding Firebase's rules for user-write, global-read
- AngularJS / Firebase - Need to login twice for a successful login
- Firebase security per user
- Android Firebase changing user email address error
- Firebase Rules - Allow only specific users to access private chat
- Firebase realtime database rules for single properties different as for the other properties in same object tree
- Firebase read permission denied when using auth security rules
- Firebase Database Delete Security Rules
Related Questions in GEOFIRESTORE
- Why I have to pre-set the collection and document name in GeoFireStore to setlocation
- Installing Geofirestore with cocoapods?
- Swift Firestore query with filter for documents near me
- How firebase http function to return snapshot to swift app
- How to perform multiple orderBy query in firestore?
- Firestore - After orderby geoHash not able to sort documents based on another field
- Canot Resolve symbol 'GeoFirestore'
- GeoFirestore - Is it possible to combine the methods near() and where() in a GeoQuery?
- Use Geofirex with React Native and rnfirebase
- Why am i receiving so many warnings about peer dependencies when using Yarn?
- Can't add timeout to a heavy promise with Promise.race
- How to get nearby queries / restaurants from firestore using react native (GeoFirestore)
- Geofirestore get subcollections from geo collection in react-native
- json format for geopoint in firestore document
- Firebase geofencing with custom shapes
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Firestore's server-side security rules can only read information about the user that is encoded into that user's ID token. So that means that you can only implement this if you encode the user's GPS location data into their ID token, and do that in a secure way.
The steps I can think of:
As you can see this process is pretty involved, and I'm not even sure how to secure step 3. So you'll have to wonder if securing the use-case is worth the effort, or whether it might be better to just limit how much data and out of what type of range people can request data at any one time.