There was an error while loading. Please reload this page.
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.