jayakrishnan-pm / Location-Tracker-Application

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
http://devdeeds.com/android-location-tracking-in-background-service/
51 stars 40 forks source link

Android 8 Support #2

Open nidhinprathap opened 5 years ago

nidhinprathap commented 5 years ago

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

Alfaizkhan commented 5 years ago

Yes. We have to add persistent notification if we want to run background services.