Skip to content

Location Tracking

Martha Sharpe edited this page Dec 7, 2020 · 6 revisions

Background location tracking is handled on the DashboardScreen.

If permissions are granted by the user and the driver is logged in and on-call, updates are sent to the api every 1200 meters.

Location tracking continues even when the app is backgrounded as long as the driver is logged in and on-call.

Because it is a background task, the function that sets the location is defined in the TaskManager, called in the global scope of the app.

Clone this wiki locally