Hi everyone,
I am currently stuck with a part I want to implement in my project. Currently, the setup is, that the user can scan a certain QR code. The QR code contains an ID that gets compared against the Firebase collection, where exactly one entry (entry A) matches with the ID. If that is the case, the entry A is copied into a different database.
Now, I would like users to only being able to add the entry to a different database, if they are in proximity of entry A (which contains geo location in the database).
Do you have any idea how to facilitate this? I know I can get the current device location, but how do I setup the condition like "if current device location is in 5km/miles radius of geo location of entry A then.."?
Kind of clueless at this point, so would really appreciate any input or idea you might have!
Have a great weekend you all!