How apps are getting locations when Background Restrictions are turned on?

377 Views Asked by At

Some android devices have options to restrict apps in the background to save battery consumption. If I will turn on this option, my app and its background service will be killed. Some apps like Uber, Careem etc are using google services to get location of driver, to track driver. I tested Uber Driver app, I turned on this option, and then killed the Uber Driver app. Location of driver was not updating, from pickup to drop off, location of driver was not updated. When I opened the driver's app to end the ride, location of driver updated, and whole distance was calculated accurately. My question is this, if app is restricted to be used and killed, then on opening app, from where it gets all the locations, how Uber app knows the travelled distance?

Please have a look on attached images, devices have options like theseenter image description here: enter image description here

0

There are 0 best solutions below