I am using Location.startLocationUpdatesAsync() to get the location coordinates.
Location.startLocationUpdatesAsync()
I am also having the foregroundService option enabled. I am
foregroundService