Set up the mobile app to automatically send the location of the device constantly (or at some interval, like once a minute) both while the app is open and most importantly, also in the background.
Start with sending the location while the app is open, and then add background updates, because that will also be more complicated.
A new router will need to be created in the backend to receive the location data and send it to the database (and there should be a new table to store these locations and device or user ID that must be sent every time the device sends its location).
Alternatively, we should probably be using WebSockets for this, and all communication back and forth with the server.
New issues should be made to address complications that make this too difficult to handle at once.
Set up the mobile app to automatically send the location of the device constantly (or at some interval, like once a minute) both while the app is open and most importantly, also in the background.
Start with sending the location while the app is open, and then add background updates, because that will also be more complicated.
A new router will need to be created in the backend to receive the location data and send it to the database (and there should be a new table to store these locations and device or user ID that must be sent every time the device sends its location). Alternatively, we should probably be using WebSockets for this, and all communication back and forth with the server.
New issues should be made to address complications that make this too difficult to handle at once.