You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When enabled, location updates are sent to the api every 400 meters or .25 miles.
Foreground vs. Background
When in the foreground, a bar is displayed on the top of the device indicating that the app is actively tracking the driver's location.
Because it drains battery life in the foreground, the app will become backgrounded after a few minutes of disuse. When the app becomes backgrounded, location updates are batched every 5 minutes.
Task Manager
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.
In this case, it is located toward the bottom of the DashboardScreen.