Foreground service not receiving location updates in Doze mode in Android O

╄→尐↘猪︶ㄣ 提交于 2019-12-01 08:21:18

Take a look on LocationUpdatesForegroundService Sample: Code Samples for Android O, maybe you do something wrong.

LocationUpdatesForegroundService Sample - Shows how to use a foreground service to get location updates when the app activities are not visible. For apps running on Android O (even apps that target Android 7.0 (API level 24) or lower), background updates are limited to only a few times per hour. Using a foreground service is a way to receive more frequent updates.

Get it on GitHub: Java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!