Sample Android Application demonstrate how to track the current location of the device in a background service and share it to the Activity in the application
As per the new Android Policies by google , you wouldnt get location updates after you go in background . Ulll get the updates once in 45 mins or something. To overcome this you need to start the Service as foreground activity
As per the new Android Policies by google , you wouldnt get location updates after you go in background . Ulll get the updates once in 45 mins or something. To overcome this you need to start the Service as foreground activity
https://developer.android.com/about/versions/oreo/background-location-limits