问题
I find myself confused with the new background limitations and am just looking for some clarity here...
With the app in the foreground OR in the background with a foreground service running, background services are good to go. I got this.
With the app in the background and without a foreground service, the background service is stopped by the system. I'm cool with this as well.
My question:
The app can still obtain limited location updates per hour but how? Where do you create the request so that it doesn't get eaten up by the system when the app is in the background?
来源:https://stackoverflow.com/questions/47640673/background-location-updates-in-oreo