Hey guys I'm creating an app like uber almost and the driver needs to update his location every seconds without stopping I started service on a new process gets the fused location updates
This way
fusedLocationClient.requestLocationUpdates(mLocationRequest, mLocationCallback, Looper.myLooper());
So when the driver on the UI it always perfect when he gets out the UI and go background it stops updating at all after seconds but the problem is the drivers are always outside the app even tho I have floating is there anyway else to keep the UI somehow there but not there? like notifications? does it work or maybe timer? keep the app on I have no idea what could help in this situation anything guys?
The Service in the manifest is
<service
android:name=".Services.LocationService"
android:exported="true"
android:permission="android.permission.BIND_JOB_SERVICE"
android:enabled="true"
android:icon="@drawable/logo"
android:description="@string/location_access_description"
android:foregroundServiceType="location"
android:process=":locationService"
/>